-
Notifications
You must be signed in to change notification settings - Fork 704
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
Use default install directory if not specified. #6624
Conversation
The "Windows / test ghc-8.6.5" test has failed for every PR I've made in the last week or so, is this a known issue? Anyways, I think this is ready to merge. |
@phadej should we merge this in before the next cabal-install release? It appears that the Windows failure is blocking the merge, at least from the GitHub UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash commits into one. (Don't use squash and merge button).
This change updates the `cabal install` command to use the default install directory for executables if one was not specified in either Cabal's config file or on the command line with the --installdir flag. Previously this would error out, now it warns that it used the default and continues. PR haskell#6624, resolves haskell#5973.
71a6fc9
to
735467e
Compare
Done. CI re-running now. OOC, why not use "Squash and Merge" button and re-write the commit message to be added to the master branch there? |
Because perfectly, I'd not use GitHub merge button at all, but let CI push to master the merge commit it tested (given the PR is accepted). We could get quite close to that with current CI setup, but GitHub actions doesn't support restarting individual jobs inside the workflow, so we cannot have whole CI as a single workflow (and thus know that all checks passed). |
Sorry for coming back to this from #5973 — is there any reason why the warning message does not mention that |
@tomsmeding not really, I just didn't think of adding it |
Cabal 3.0.0.0 added the
--installdir
option to specify the location that binaries should be installed in. Running acabal user-config update
would populate the config file with the default value, but thecabal install
program would error if it wasn't set. This change uses the default value that would be written to the config if its unset, and outputs a warning.Previous error:
New warning (install succeds):
This resolves #5973
Please include the following checklist in your PR:
[ci skip]
is used to avoid triggering the build bots.Please also shortly describe how you tested your change. Bonus points for added tests!
/cc @phadej @fgaz