Skip to content

Commit

Permalink
Merge pull request KurokuLabs#125 from DisposaBoy/bug-962
Browse files Browse the repository at this point in the history
  • Loading branch information
DisposaBoy authored Mar 1, 2020
2 parents a93456f + e958ccd commit c92f40f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sublime/sublime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c92f40f

Please sign in to comment.