mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
update recursively when new version is available
This would take more but it's safer approach for common usage. Former-commit-id: 87e11d9ea6dbb0df438e91fb478ca08e1a631d31
This commit is contained in:
@@ -99,13 +99,13 @@ func checkVersion() {
|
||||
}
|
||||
|
||||
if shouldUpdate {
|
||||
repo := "github.com/kataras/iris"
|
||||
cmd := exec.Command("go", "get", "-u", "-f", "-v", repo)
|
||||
repo := "github.com/kataras/iris/..."
|
||||
cmd := exec.Command("go", "get", "-u", "-v", repo)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stdout
|
||||
|
||||
if err := cmd.Run(); err != nil {
|
||||
golog.Warnf("unexpected message while trying to go get,\nif you edited the original source code then you've to remove the whole $GOPATH/src/github.com/kataras folder and execute `go get github.com/kataras/iris` manually\n%v", err)
|
||||
golog.Warnf("unexpected message while trying to go get,\nif you edited the original source code then you've to remove the whole $GOPATH/src/github.com/kataras folder and execute `go get -u github.com/kataras/iris/...` manually\n%v", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user