summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 01:42:49 -0500
committerJeff Carr <[email protected]>2025-10-09 01:42:49 -0500
commitc21408af7592ed870458e7362bd2d44c0bfcc4c5 (patch)
tree2bdac00cd80e5ffb497cad5fcd12ba2ef529f8f6 /build.go
parent346956ca4bae0792c03c35b54b75bdea5350814c (diff)
don't need this here anymore. moved to publishing toolv0.0.175
Diffstat (limited to 'build.go')
-rw-r--r--build.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/build.go b/build.go
index dc06166..f67b137 100644
--- a/build.go
+++ b/build.go
@@ -36,14 +36,6 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
log.Warn("forge.doBuild repo == nil")
return errors.New("forge.doBuild repo == nil")
}
- if f.IsGoWork() {
- // when building using a go.work file, never use GO111MODULE=off
- os.Unsetenv("GO111MODULE")
- } else {
- // when building from ~/go/src, always use GO111MODULE=off
- os.Setenv("GO111MODULE", "off")
- defer os.Unsetenv("GO111MODULE")
- }
if f.IsGoWork() {
// there must be a valid go.mod file if compiling with go.work