summaryrefslogtreecommitdiff
path: root/stateWindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'stateWindow.go')
-rw-r--r--stateWindow.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/stateWindow.go b/stateWindow.go
index 857d795..0e0c61b 100644
--- a/stateWindow.go
+++ b/stateWindow.go
@@ -72,9 +72,7 @@ func (c *controlBox) buildPackage() bool {
}
} else {
- if c.status.CheckDirty() {
- os.Setenv("GO111MODULE", "off")
- }
+ os.Setenv("GO111MODULE", "off")
if shell.Run([]string{"go", "build", "-v", "-x"}) {
log.Warn("build worked")
} else {
@@ -163,6 +161,11 @@ func (c *controlBox) buildPackage() bool {
// experiment for the toolkit package
if c.status.Exists("build") {
+ if args.Release {
+ os.Unsetenv("GO111MODULE")
+ } else {
+ os.Setenv("GO111MODULE", "off")
+ }
shell.Run([]string{"./build"})
}