From 98f782fc080fdb2d961e17906f264937a3d4c280 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Mon, 30 Dec 2019 04:39:34 +0400 Subject: [PATCH] Change import paths to source.hodakov.me --- README.md | 8 ++++---- domains/yandex/v1/exported.go | 2 +- domains/yandex/v1/help.go | 2 +- domains/yandex/v1/requests.go | 4 ++-- go.mod | 2 +- internal/context/exported.go | 2 +- main.go | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6c73aa4..c899d42 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ wget -O - -q https://install.goreleaser.com/github.com/fat0troll/yapusher.sh | s If you're brave enough, or have Go installed, you can invoke ```sh -go get -u github.com/fat0troll/yapusher +go get -u source.hodakov.me/fat0troll/yapusher ``` The stability of master branch is questionable. Please consider using pre-built binaries except you facing some bugs that aren't fixed in newest release. @@ -69,7 +69,7 @@ There are some things to do: ### License -See [LICENSE](https://github.com/fat0troll/yapusher/blob/master/LICENSE). +See [LICENSE](https://source.hodakov.me/fat0troll/yapusher/src/branch/master/LICENSE). ## Russian @@ -93,7 +93,7 @@ wget -O - -q https://install.goreleaser.com/github.com/fat0troll/yapusher.sh | s Если вы хотите собрать утилиту из исходников (и имеете установленный Go в системе), вы можете установить ``yapusher`` так: ```sh -go get -u github.com/fat0troll/yapusher +go get -u source.hodakov.me/fat0troll/yapusher ``` Стабильность ветки ``master`` находится под вопросом. Рекомендуется использовать собранную автоматически версию утилиты из релиза, если вы не являетесь разработчиком на Go или же не испытываете затруднений в работе с утилитой, исправления которых ещё не вошло в очередной релиз. @@ -138,4 +138,4 @@ yapusher -file /путь/к/файлу -uploadPath "путь/на/яндекс/ ### Лицензия -См. [LICENSE](https://github.com/fat0troll/yapusher/blob/master/LICENSE). +См. [LICENSE](https://source.hodakov.me/fat0troll/yapusher/src/branch/master/LICENSE). diff --git a/domains/yandex/v1/exported.go b/domains/yandex/v1/exported.go index 4e3662b..bdc2852 100644 --- a/domains/yandex/v1/exported.go +++ b/domains/yandex/v1/exported.go @@ -4,7 +4,7 @@ package yandexv1 import ( - "github.com/fat0troll/yapusher/internal/context" + "source.hodakov.me/fat0troll/yapusher/internal/context" "github.com/rs/zerolog" "gitlab.com/pztrn/flagger" ) diff --git a/domains/yandex/v1/help.go b/domains/yandex/v1/help.go index a6f67a8..5e607f8 100644 --- a/domains/yandex/v1/help.go +++ b/domains/yandex/v1/help.go @@ -9,7 +9,7 @@ import ( func showHelp() { dlog.Info().Msg("This app is authorized for uploading your files one by one to Yandex.Disk.") - dlog.Info().Msg("For information how to use this app, run yapusher with -h flag or head to https://github.com/fat0troll/yapusher/blob/master/README.") + dlog.Info().Msg("For information how to use this app, run yapusher with -h flag or head to https://source.hodakov.me/fat0troll/yapusher/blob/master/README.") os.Exit(0) } diff --git a/domains/yandex/v1/requests.go b/domains/yandex/v1/requests.go index 7b97582..dc80428 100644 --- a/domains/yandex/v1/requests.go +++ b/domains/yandex/v1/requests.go @@ -133,7 +133,7 @@ func uploadFile(uploadPath string, filePath string, overwriteFile bool) { } if uploadInfo.URL == "" { - dlog.Fatal().Msg("Got empty upload URL. Report a bug at https://github.com/fat0troll/yapusher/issues because this situation is impossible.") + dlog.Fatal().Msg("Got empty upload URL. Report a bug at https://source.hodakov.me/fat0troll/yapusher/issues because this situation is impossible.") } uploadReq, _ := http.NewRequest("PUT", uploadInfo.URL, progressReader) @@ -150,7 +150,7 @@ func uploadFile(uploadPath string, filePath string, overwriteFile bool) { case http.StatusAccepted: dlog.Info().Msg("File uploaded successfully, but it will take time for Yandex.Disk to handle it internally. Be patient and don't try to upload single file many times") case http.StatusRequestEntityTooLarge: - dlog.Fatal().Msg("File upload is too large. Report a bug at https://github.com/fat0troll/yapusher/issues because this situation should be handled before upload attempt.") + dlog.Fatal().Msg("File upload is too large. Report a bug at https://source.hodakov.me/fat0troll/yapusher/issues because this situation should be handled before upload attempt.") case http.StatusInsufficientStorage: dlog.Fatal().Msg("There is no space left on your Yandex.Disk.") default: diff --git a/go.mod b/go.mod index ebf2a39..d006198 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/fat0troll/yapusher +module source.hodakov.me/fat0troll/yapusher go 1.12 diff --git a/internal/context/exported.go b/internal/context/exported.go index baddd3f..7e8a1ea 100644 --- a/internal/context/exported.go +++ b/internal/context/exported.go @@ -4,7 +4,7 @@ package context import ( - "github.com/fat0troll/yapusher/internal/config" + "source.hodakov.me/fat0troll/yapusher/internal/config" "github.com/rs/zerolog" "gitlab.com/pztrn/flagger" ) diff --git a/main.go b/main.go index 2892599..c625706 100644 --- a/main.go +++ b/main.go @@ -5,8 +5,8 @@ package main import ( "fmt" - "github.com/fat0troll/yapusher/domains/yandex/v1" - "github.com/fat0troll/yapusher/internal/context" + "source.hodakov.me/fat0troll/yapusher/domains/yandex/v1" + "source.hodakov.me/fat0troll/yapusher/internal/context" "runtime/debug" )