--release unsets GO111MODULE and vis-a-vis

This commit is contained in:
Jeff Carr 2024-02-21 21:33:01 -06:00
parent cbe33ab5fe
commit bced5e9a07
2 changed files with 10 additions and 7 deletions

View File

@ -47,8 +47,8 @@ debian:
mirrors:
-wit mirrors
build-go-gui-toolkits:
./go-deb --no-gui --repo go.wit.com/apps/go-gui-toolkits
build-go-gui-toolkits: build
./go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
build-all:
go-deb --no-gui --repo go.wit.com/apps/autotypist
@ -64,12 +64,12 @@ build-all:
build-releases:
go-deb --release --no-gui --repo go.wit.com/apps/autotypist
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-dns
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-digitalocean
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-cloudflare
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-vpn
go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
go-deb --release --no-gui --repo go.wit.com/apps/guireleaser
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-cloudflare
go-deb --release --no-gui --repo go.wit.com/apps/control-panel-dns
go-deb --release --no-gui --repo go.wit.com/apps/go-deb
go-deb --release --no-gui --repo go.wit.com/apps/go.wit.com
go-deb --release --no-gui --repo go.wit.com/apps/helloworld

View File

@ -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"})
}