summaryrefslogtreecommitdiff
path: root/stateWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-21 21:33:01 -0600
committerJeff Carr <[email protected]>2024-02-21 21:33:01 -0600
commitbced5e9a072a039e2fa3f66a8decfe23428147b9 (patch)
tree1ed0929c3eec21617f33b793bca77680b1653cb9 /stateWindow.go
parentcbe33ab5fe2f0d2aeb2dbf6f361834a126bd473c (diff)
--release unsets GO111MODULE and vis-a-visv0.21.0v0.20.9
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"})
}