Skip to content

Commit

Permalink
sync margo
Browse files Browse the repository at this point in the history
Fix #962
  • Loading branch information
DisposaBoy committed Mar 1, 2020
1 parent 3c694d0 commit 58b6de6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/margo.sh/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 58b6de6

Please sign in to comment.