purescript-native icon indicating copy to clipboard operation
purescript-native copied to clipboard

Instructions for spago and go do not work

Open danielo515 opened this issue 6 years ago • 2 comments

Hello! I already posted this on spago repository, but maybe it is best suited here, so please forgive me if this duplication causes any problem or overload the same team in some way. I'm having problems on macOS to run spago build using psgo as backend. I have Go toolchain installed and I can run go in any terminal.

Here is my spago.dhall:

{ name = "my-project"
, dependencies = [ "console", "effect", "psci-support" ]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
, backend = "psgo"
}

And here is the error I'm getting:

➜  spago build
[info] Installation complete.
[info] Build succeeded.
/bin/sh: psgo: command not found
[error] Backend "psgo" exited with error:127

I followed all the isntruction shtat I have found and I'm not sure what else should I try or install. Compiling to JS has no problems. Thanks in advance.

danielo515 avatar Dec 02 '19 10:12 danielo515

Ok, I just found the way to solve this. I download a psgo binary and put it on a binary folder that was on my path. After that, everything worked without problem and now I have my native build file called Main. I think psgo installation instructions are not clear. I expected spago to download the psgo binary, or to compile it from source if necessary. There is nothing on the instructions saying that you should make psgo available yourself. Please consider updating them. Thanks for this awesome project. I'll let you the decision about closing this issue to you.

danielo515 avatar Dec 02 '19 10:12 danielo515

Hi, have you fund a psgo binary for windows?

leoheung avatar May 21 '23 11:05 leoheung