upon running the rule
"_build/builder" <.> exe %> \out -> do
unit $ cmd "stack build --stack-yaml=stack.yaml" $ takeFileName out
cmd ("cp $(stack path --stack-yaml=stack.yaml --local-install-root)/bin/" ++ (takeFileName out)) out
I get a failure on the second command
Error when running Shake build system:
* _build/builder
user error (Development.Shake.cmd, system command failed
Command: cp $(stack path --stack-yaml=stack.yaml --local-install-root)/bin/builder _build/builder
Exit code: 64
Stderr:
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
)
solution maybe later
"_build/builder" <.> exe %> \out -> do
unit $ cmd "stack build --stack-yaml=stack.yaml" $ takeFileName out
Stdout localinstallroot <- cmd "stack path --stack-yaml=stack.yaml --local-install-root"
cmd "cp " (trim localinstallroot ++ "/bin/" ++ (takeFileName out)) out
so nested shell not encouraged. good call
as forecasted
"_build/builder" <.> exe %> \out -> do
unit $ cmd "stack build --stack-yaml=stack.yaml" $ takeFileName out
Stdout localinstallroot <- cmd "stack path --stack-yaml=stack.yaml --local-install-root"
cmd "cp " (trim localinstallroot ++ "/bin/" ++ (takeFileName out)) out
so nested shell not encouraged. good call
On Tuesday, December 1, 2015 at 7:30:18 PM UTC+1, nicolas...@gmail.com wrote:
> it's for sure some small pb on my part, but I am now encountering an error, so I just put it out there if someone experience the same in the future :
>
>
> upon running the rule
>
>
> "_build/builder" <.> exe %> \out -> do
> unit $ cmd "stack build --stack-yaml=stack.yaml" $ takeFileName out
> cmd ("cp $(stack path --stack-yaml=stack.yaml --local-install-root)/bin/" ++ (takeFileName out)) out
>
>
> I get a failure on the second command
>
> Error when running Shake build system:
> * _build/builder
> user error (Development.Shake.cmd, system command failed
> Command: cp $(stack path --stack-yaml=stack.yaml --local-install-root)/bin/builder _build/builder
> Exit code: 64
> Stderr:
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
> cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> )
>
>
>
> solution maybe later