From 048a95a07493c3739c8118b0278b332a2a568ba4 Mon Sep 17 00:00:00 2001 From: DisposaBoy Date: Mon, 9 Mar 2020 06:59:54 +0000 Subject: [PATCH] fix failure to undo the setting of GO111MODULE when building the client binary re: https://github.com/DisposaBoy/GoSublime/issues/916 --- sublime/sublime.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sublime/sublime.go b/sublime/sublime.go index fd27a85..fb95f75 100644 --- a/sublime/sublime.go +++ b/sublime/sublime.go @@ -51,6 +51,8 @@ func buildAction(c *cli.Context) error { pkg, err := extensionPkg() if modSet { os.Setenv("GO111MODULE", modWas) + } else { + os.Unsetenv("GO111MODULE") } if err == nil { fixExtPkg(pkg)