justinwoo / spago2nix

Generate a derivation of (old) Spago dependencies, and use them to install them into the directory structure used by Spago.
MIT License
42 stars 22 forks source link

Spago pass args #47

Closed justinwoo closed 2 years ago

justinwoo commented 3 years ago

https://github.com/justinwoo/spago2nix/issues/46

$ ./result/bin/spago2nix generate 2 -- --config b
getting packages..
failed to list packages:
[error] failed to read the config. error was:
[error] there's no "b" in your current location.

if you already have a spago project you might be in the wrong subdirectory,
otherwise you might want to run `spago init` to initialize a new project.

(spagorunerror "normally 1")

and such

jamesdbrock commented 3 years ago

I tried this out and it works!

It does require that you specify a number of concurrent jobs thought.

justinwoo commented 3 years ago

oh yeah, i misread what the original implementation was. i thought it required the param every time

justinwoo commented 3 years ago
$ ./result/bin/spago2nix generate -- --config a
getting packages..
Failed to list packages:
[error] Failed to read the config. Error was:
[error] There's no "a" in your current location.

If you already have a spago project you might be in the wrong subdirectory,
otherwise you might want to run `spago init` to initialize a new project.

(SpagoRunError "Normally 1")

$ ./result/bin/spago2nix generate 1 -- --config a
getting packages..
Failed to list packages:
[error] Failed to read the config. Error was:
[error] There's no "a" in your current location.

If you already have a spago project you might be in the wrong subdirectory,
otherwise you might want to run `spago init` to initialize a new project.

(SpagoRunError "Normally 1")

fixed it

justinwoo commented 2 years ago

I'll try to remember to update the README at some point.