-
Notifications
You must be signed in to change notification settings - Fork 841
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
1.9.1 fails to build from tarball without .git/ #4364
Comments
Same result with ghc-8.4.3 FWIW I am building with the revised .cabal file from Hackage. |
As far as I understand you need to use flag |
@qrilka I see, but I didn't have a problem 1.7.1. |
But thanks that fixed 1.9.1 for me. |
stack-1.7.1 built with I don't think we should default the @snoyberg I see |
This is probably the same thing as #4363. |
I'm not sure if gitrev handled this "gracefully," I think it simply provided incorrect information. The question is: what should we ideally do in a case where the flags are saying "use Git information" and there isn't any Git information? Options:
It seems to me that (3) is the best choice. I'll make the necessary changes to |
I've created a commit to address this (85a2b97). I'm not sure which branch to send the PR to though. |
Yeah, you're right gitrev wasn't exactly graceful, I think it returned a string containing "unknown" which isn't great. I agree (3) is the right choice. I think the |
With 1.9.1.1 I get:
https://copr.fedorainfracloud.org/coprs/petersen/stack/build/826407/ (this using ghc-8.2.2) |
@juhp Thanks for the report. How can I view the build log at copr? |
You click on fedora-rawhide-x86_64 (okay I should probably link directly there next time). |
Ah, it was The issue is in githash — it looks like the compiler is failing to find git. Is git present on your build (it looks like it is, at some point)? Otherwise is cabal-install providing an environment without git on the path? The fix is either for githash to fail gracefully when there is no @snoyberg I'll raise the issue on githash — what would you prefer, here? |
Yes, this is with 1.9.1.1 |
Lines 125 to 138 in a953002
So if |
Thanks for the clarification @dbaynard, I read through this too quickly. @juhp would it be possible to test a commit of |
@juhp I've made the release to Hackage. |
Thanks @snoyberg that built fine :-) https://copr.fedorainfracloud.org/coprs/petersen/stack/build/828937/ |
General summary/comments (optional)
Getting compilation errors in Main.hs see below for details
Steps to reproduce
Build 1.9.1 in a cabal sandbox.
Buildlog: https://copr-be.cloud.fedoraproject.org/results/petersen/stack/fedora-rawhide-x86_64/00812150-stack/build.log.gz
(See https://copr-dist-git.fedorainfracloud.org/cgit/petersen/stack/stack.git/tree/stack.spec?id=d786c497ff6c79c885688e8bd7976d31eaf849fa#n139 for exact build steps.)
Expected
Successful build
Actual
Fail failed:
Method of installation
The text was updated successfully, but these errors were encountered: