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

hjsmin-0.2.0.3 test suite failure #32

Closed
peti opened this issue Oct 17, 2019 · 4 comments
Closed

hjsmin-0.2.0.3 test suite failure #32

peti opened this issue Oct 17, 2019 · 4 comments

Comments

@peti
Copy link

peti commented Oct 17, 2019

Citing from https://hydra.nixos.org/build/103546286:

Running 1 test suites...
Test suite test-cli: RUNNING...
test-cli: /build/hjsmin-0.2.0.3/dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
Test suite test-cli: FAIL

It looks like maybe there is a file or directory missing from the release tarball? Or maybe some other hard-coded path does not exist?

@erikd
Copy link
Owner

erikd commented Oct 17, 2019

I suspect that is due to using an old version of cabal. I am using cabal version 3.0 and the follow works fine:

cd /tmp/
git clone https://github.com/erikd/hjsmin
cd hjsmin/
cabal build 
cabal test --test-show-details=direct

(also builds correctly in CI btw).

@peti
Copy link
Author

peti commented Oct 18, 2019

git clone https://github.com/erikd/hjsmin

Keep in mind that I am not building from a git checkout. I compile a release tarball from Hackage, which may not have the same files as your git repo does.

@svmhdvn
Copy link

svmhdvn commented Jun 24, 2020

This issue still exists when building with the nixpkgs haskell infrastructure on the latest haskell-updates branch (after removing the dontCheck override to ensure that tests are run during the build):

Running 1 test suites...
Test suite test-cli: RUNNING...
test-cli: /build/hjsmin-0.2.0.4/dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
Test suite test-cli: FAIL
Test suite logged to: dist/test/hjsmin-0.2.0.4-test-cli.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for '/nix/store/sdkcj127abl0fs6cfi0mfqzax2g1s5ws-hjsmin-0.2.0.4.drv' failed with exit code 1
error: build of '/nix/store/sdkcj127abl0fs6cfi0mfqzax2g1s5ws-hjsmin-0.2.0.4.drv' failed

@erikd
Copy link
Owner

erikd commented Jun 25, 2020

I don't (willingly) use Nix. Unless you can recreate this from a git checkout or the Hackage tarball I will not be spending any time on this.

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

3 participants