From d7a45a51c63a8086f8724fef46647bc61161b470 Mon Sep 17 00:00:00 2001 From: Fajri Fernanda Date: Tue, 14 Apr 2020 19:02:05 +0700 Subject: [PATCH] hotfix: self update (#17) * hotfix: fix self update * bump: changelog --- CHANGELOG.md | 11 +++++++++-- config/version.go | 2 +- console/update.go | 5 ++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dba61aa..3ea19da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ #Fer + +## [v1.5.4] - 2020-04-14 +### Fixes +- fix self update + + ## [v1.5.3] - 2020-04-14 ### Fixes -- fix self updater +- self update not working ([#15](https://github.com/kumparan/fer/issues/15)) @@ -78,7 +84,8 @@ - db migrationfile generator ([#3](https://github.com/kumparan/fer/issues/3)) -[Unreleased]: https://github.com/kumparan/fer/compare/v1.5.3...HEAD +[Unreleased]: https://github.com/kumparan/fer/compare/v1.5.4...HEAD +[v1.5.4]: https://github.com/kumparan/fer/compare/v1.5.3...v1.5.4 [v1.5.3]: https://github.com/kumparan/fer/compare/v1.5.2...v1.5.3 [v1.5.2]: https://github.com/kumparan/fer/compare/v1.5.1...v1.5.2 [v1.5.1]: https://github.com/kumparan/fer/compare/v1.5.0...v1.5.1 diff --git a/config/version.go b/config/version.go index 1c829ed..b12b6b7 100644 --- a/config/version.go +++ b/config/version.go @@ -1,4 +1,4 @@ package config // Version define version of fer -const Version = "v1.5.3" +const Version = "v1.5.4" diff --git a/console/update.go b/console/update.go index 25fd8e2..1a1740e 100644 --- a/console/update.go +++ b/console/update.go @@ -17,7 +17,10 @@ var updateCmd = &cobra.Command{ } func updateVersion(cmd *cobra.Command, args []string) { - updateCommand := exec.Command("bash", "GO111MODULE=on", "go", "get", "github.com/kumparan/fer@latest") + updateCommand := exec.Command("go", "get", "github.com/kumparan/fer@latest") + updateCommand.Env = append(os.Environ(), + "GO111MODULE=on", + ) PrintInfo("Updating fer...") err := updateCommand.Run() if err != nil {