From e958ccd6b468ff185deae25b1566cfac1c701498 Mon Sep 17 00:00:00 2001 From: DisposaBoy Date: Sun, 1 Mar 2020 13:52:21 +0000 Subject: [PATCH] Fix https://github.com/DisposaBoy/GoSublime/issues/962 --- sublime/sublime.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sublime/sublime.go b/sublime/sublime.go index f577bc7..fd27a85 100644 --- a/sublime/sublime.go +++ b/sublime/sublime.go @@ -43,7 +43,15 @@ func buildAction(c *cli.Context) error { tags := "margo" errs := []string{} + modWas, modSet := os.LookupEnv("GO111MODULE") + // guess: dotless module names are reserved, + // so the import fails because `margo` is not in GOROOT + // I <3 Go modules! + os.Setenv("GO111MODULE", "off") pkg, err := extensionPkg() + if modSet { + os.Setenv("GO111MODULE", modWas) + } if err == nil { fixExtPkg(pkg) tags = "margo margo_extension"