Skip to content

cabal run tests fails on macOS #85

@yvan-sraka

Description

@yvan-sraka
% 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions