Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal run tests fails on macOS #85

Open
yvan-sraka opened this issue Sep 22, 2023 · 0 comments
Open

cabal run tests fails on macOS #85

yvan-sraka opened this issue Sep 22, 2023 · 0 comments

Comments

@yvan-sraka
Copy link
Contributor

yvan-sraka commented Sep 22, 2023

% cabal install
(...)
% export PATH="$PATH:$HOME/.local/bin"
% cabal run tests                                   
Resolving dependencies...
foliage-test-suite
  one:                      cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
foliage: Error when running Shake build system:
  at want, called at app/Foliage/CmdBuild.hs:48:7 in main:Foliage.CmdBuild
* Depends on: buildAction
  at apply1, called at app/Foliage/PrepareSource.hs:40:31 in main:Foliage.PrepareSource
* Depends on: prepareSource pkg-a-2.3.4.5 PackageVersionSpec {packageVersionTimestamp = Just 2022-03-29 06:19:50 UTC, packageVersionSource = URISource {sourceURI = file:tarballs/pkg-a-2.3.4.5.tar.gz, subdir = Nothing}, packageVersionRevisions = [], packageVersionDeprecations = [], packageVersionForce = False}
  at cmd_, called at app/Foliage/PrepareSource.hs:120:7 in main:Foliage.PrepareSource
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: cp --recursive --no-target-directory --dereference /var/folders/hk/llrjjm3s10q80k4wgjms65hm0000gn/T/extra-dir-12878831734/pkg-a-2.3.4.5 _cache/pkg-a/2.3.4.5
Exit code: 64
Stderr:
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory


                            FAIL (0.04s)
    Building repository (0.04s)
      readCreateProcess: foliage build (exit 1): failed
    
    Use -p '$0=="foliage-test-suite.one"' to rerun this test only.
(...)

This seems related to #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant