-
Notifications
You must be signed in to change notification settings - Fork 697
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
--bindir is ignored without warning or suggestion that --installdir
should be used
#8520
Comments
I confirm this problem. |
This should be resolved by #8556 which removes all installdirs options from new-install (but leaves them for build, etc) |
@Mikolaj Could you please point me at the artifact (exact location or URL would be fine) that I'd download and experiment with? |
@mouse07410: hah, you've edited my comment. Any artifact from a merged PR should do. E.g., at the very bottom of https://github.com/haskell/cabal/actions/runs/3716873166 Let me know if that's not enough. |
Hmm, did not realize...
Perhaps I'm being dense, and fighting some weird respiratory virus doesn't make me any sharper :-( . But I saw no artifacts there.
I'm afraid it isn't. If somewhere within those runs is a snippet that places linked cabal binary to somewhere where I can reach it with, e.g., So, I'd love something like (URL is definitely incorrect, and crafted merely to show what I'm trying to request): Otherwise, I'm viewing a ton of validation output, but no artifacts... |
@mouse07410 unfortunately, you can't get a direct download link for GitHub artifacts (see actions/upload-artifact#27), and you have to use a web browser to retrieve them. Try again that page, and just Cmd+F (search) for the word Artifact: second occurrence of it should lead you to the links. Direct link would be possible if we organized nightly pre-releases, as it was suggested in #8541. If you feel energy, feel free to work on it: it's a simple update of the CI with a huge dev experience improvement. |
That is fine. My problem is - there doesn't seem to be any artifact on that page.
Either we're talking about different pages, or I've no clue whatsoever. Search for "Artifact" found zero entries. That page only contains logs of "Validate XXX" jobs, "Dogfooding XXX" jobs, and "Validate post job". Trying to dig into any of those logs gives me the standard CI log "Set up job, Run actions/checkput@v3, ..." etc. I don't see any artifact (nor Artifact) anywhere there. Besides the above, I picked the "Validate for macOS GHC-9.0.2" job No joy. This https://github.com/haskell/cabal/actions/artifacts also returns HTTP 404. And before you ask, this https://github.com/haskell/cabal/actions/artifacts/3716873166/zip also fails with 404. Trying https://api.github.com/repos/haskell/cabal/actions/artifacts/3716873166/zip gets me
My guess is - there are no artifacts on that page. As the proverb goes - "it's hard to search for a black cat in a dark room. Especially if it isn't there". Would love to show screenshots, but
I don't have a lot of time on my hands, especially now - but I'll take a look. In fact, I'm very surprised it hasn't been done yet. UpdateTurns out, there is an extremely convoluted way to get an "artifact". Contrary to expectations, the majority of the validation jobs did not leave one. However, I did find one for macOS, built with GHC-9.2.3. More later. |
I'm really surprised. Your browser must be broken somehow, particularly the C-f functionality (you did use it, right? not the "Search" input field of github?). But scrolling the whole page with a scrollbar on the right (not scrolling any sub-pane only) of the original link I posted https://github.com/haskell/cabal/actions/runs/3716873166 should really show a short "Artifacts" section at the end. If it doesn't, perhaps fire a Linux VM and try again. |
Considering that my browser works with everything else (so far), I rather doubt it's broken. Yes, I used Cmd-F (the only way to do a search on the page?).
Damn it! I found it in your newly-provided page by scrolling to the very end the right column. So, this page https://github.com/haskell/cabal/actions/runs/3716873166/ has it. Now, to business. Downloaded artifact is installed on my system as
With the released cabal 3.8.1.0:
Ignored |
@mouse07410: I've started a gitlab run for you with the latest master branch and without assertions (that's how gitlab is configured): https://gitlab.haskell.org/haskell/cabal/-/pipelines The ProjectPlanning assertion failure is a known old embarrassing bug with a ticket or a few. I hope it only manifests with assertions on. I hope your respiratory virus gets evicted soon. :) |
@Mikolaj thank you - downloaded a working artifact from GitLab. It still fails in exactly the same way: silently installs into
Update: verbose log |
I tested on that branch and got the following?
|
Amazing. Thank you, @gbaz. In that case I think we can put it to rest until #8556 is merged. Afterwards, volunteer to update https://cabal.readthedocs.io/en/latest would be welcome. |
Describe the bug
Using
v1-install
option--bindir
results in no warning, but is silently ignored.The option is displayed in
cabal new-install --help
, but redundant with--installdir
To Reproduce
Steps to reproduce the behavior:
The resulting binary will not be copied to
./output
, nor warning will be issued.Expected behavior
Since
--bindir
is accepted, it should be duplicate of--installdir
or removed.System information
cabal
version3.4.1.0
ghc
version -- irrelevant*** Related ***
Similar problem as with #7437.
The text was updated successfully, but these errors were encountered: