From c21408af7592ed870458e7362bd2d44c0bfcc4c5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Oct 2025 01:42:49 -0500 Subject: don't need this here anymore. moved to publishing tool --- build.go | 8 -------- 1 file changed, 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 -- cgit v1.2.3