--release unsets GO111MODULE and vis-a-vis
This commit is contained in:
parent
cbe33ab5fe
commit
bced5e9a07
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
|
@ -72,9 +72,7 @@ func (c *controlBox) buildPackage() bool {
|
|||
}
|
||||
} else {
|
||||
|
||||
if c.status.CheckDirty() {
|
||||
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"})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue