diff options
| -rw-r--r-- | build.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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 |
