git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Make sure psgo appends to instead of replacing the parent shell GOPATH
commitc31d95b000e46423a16ed3755e3eb9b0c8cf4412 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSat 13 Jul 2019, 22:01 (7 years ago) parent5a5189e
1 file changed+2−1
app/Main.hs+2−1
app/Main.hs+2−1
@@ -107,7 +107,8 @@ main = do
107107 files <- find always (extension ==? goSrc) currentDir
108108 let fileDirs = nub $ joinPath . init <$> filter isSrc (getDir <$> files)
109109 currentEnv <- getEnvironment
110− let searchPath = intercalate [searchPathSeparator] fileDirs
110+ let pathDirs = maybe id (:) (lookup "GOPATH" currentEnv) $ fileDirs
111+ searchPath = intercalate [searchPathSeparator] pathDirs
111112 env = ("GOPATH", searchPath) : currentEnv
112113 (_, _, _, p) <- createProcess (proc "go" [command, "Main"]){ env = Just env }
113114 waitForProcess p