Change import paths to source.hodakov.me

master
Vladimir Hodakov 2019-12-30 04:39:34 +04:00
parent 8bb4ab76cf
commit 98f782fc08
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
7 changed files with 12 additions and 12 deletions

View File

@ -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 If you're brave enough, or have Go installed, you can invoke
```sh ```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. 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 ### License
See [LICENSE](https://github.com/fat0troll/yapusher/blob/master/LICENSE). See [LICENSE](https://source.hodakov.me/fat0troll/yapusher/src/branch/master/LICENSE).
## Russian ## Russian
@ -93,7 +93,7 @@ wget -O - -q https://install.goreleaser.com/github.com/fat0troll/yapusher.sh | s
Если вы хотите собрать утилиту из исходников (и имеете установленный Go в системе), вы можете установить ``yapusher`` так: Если вы хотите собрать утилиту из исходников (и имеете установленный Go в системе), вы можете установить ``yapusher`` так:
```sh ```sh
go get -u github.com/fat0troll/yapusher go get -u source.hodakov.me/fat0troll/yapusher
``` ```
Стабильность ветки ``master`` находится под вопросом. Рекомендуется использовать собранную автоматически версию утилиты из релиза, если вы не являетесь разработчиком на Go или же не испытываете затруднений в работе с утилитой, исправления которых ещё не вошло в очередной релиз. Стабильность ветки ``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).

View File

@ -4,7 +4,7 @@
package yandexv1 package yandexv1
import ( import (
"github.com/fat0troll/yapusher/internal/context" "source.hodakov.me/fat0troll/yapusher/internal/context"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"gitlab.com/pztrn/flagger" "gitlab.com/pztrn/flagger"
) )

View File

@ -9,7 +9,7 @@ import (
func showHelp() { func showHelp() {
dlog.Info().Msg("This app is authorized for uploading your files one by one to Yandex.Disk.") 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) os.Exit(0)
} }

View File

@ -133,7 +133,7 @@ func uploadFile(uploadPath string, filePath string, overwriteFile bool) {
} }
if uploadInfo.URL == "" { 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) uploadReq, _ := http.NewRequest("PUT", uploadInfo.URL, progressReader)
@ -150,7 +150,7 @@ func uploadFile(uploadPath string, filePath string, overwriteFile bool) {
case http.StatusAccepted: 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") 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: 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: case http.StatusInsufficientStorage:
dlog.Fatal().Msg("There is no space left on your Yandex.Disk.") dlog.Fatal().Msg("There is no space left on your Yandex.Disk.")
default: default:

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/fat0troll/yapusher module source.hodakov.me/fat0troll/yapusher
go 1.12 go 1.12

View File

@ -4,7 +4,7 @@
package context package context
import ( import (
"github.com/fat0troll/yapusher/internal/config" "source.hodakov.me/fat0troll/yapusher/internal/config"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"gitlab.com/pztrn/flagger" "gitlab.com/pztrn/flagger"
) )

View File

@ -5,8 +5,8 @@ package main
import ( import (
"fmt" "fmt"
"github.com/fat0troll/yapusher/domains/yandex/v1" "source.hodakov.me/fat0troll/yapusher/domains/yandex/v1"
"github.com/fat0troll/yapusher/internal/context" "source.hodakov.me/fat0troll/yapusher/internal/context"
"runtime/debug" "runtime/debug"
) )