-
Notifications
You must be signed in to change notification settings - Fork 714
cabal update: don't show comment with builddir in the default config #11067
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
Merged
mergify
merged 1 commit into
master
from
dont-mention-builddir-in-default-config-t11050
Jul 13, 2025
Merged
cabal update: don't show comment with builddir in the default config #11067
mergify
merged 1 commit into
master
from
dont-mention-builddir-in-default-config-t11050
Jul 13, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sheaf
reviewed
Jul 11, 2025
geekosaur
approved these changes
Jul 11, 2025
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.
(assuming the next push fixes the comment)
Oh, whoops, there's a test that checks these (which IIRC you already pointed out to someone else?). |
does anyone get why CI fails? |
5847556
to
8301c1e
Compare
sheaf
approved these changes
Jul 11, 2025
2c86641
to
ad6dedf
Compare
Added changelog and manual QA notes in the PR description. |
e65b0b5
to
0fdb5b1
Compare
When calling `cabal update` with an empty state (empty CABAL_DIR or new machine), cabal writes out a default config file with many fields commented out to show their defaults. This suggests that the user can uncomment the field and override the default. This is wrong for fields that aren't allowed in the config file like `builddir`. This patch avoids generating a comment with `builddir` in the default config. Fix #11050.
0fdb5b1
to
a49146a
Compare
86 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cabal-install: cmd/update
merge delay passed
Applied (usually by Mergify) when PR approved and received no updates for 2 days
merge me
Tell Mergify Bot to merge
re: config-file
Concerning the cabal configuration file and the `--config-file` option
ready and waiting
Mergify is waiting out the cooldown period
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When calling
cabal update
with an empty state (empty CABAL_DIR or new machine), cabal writes out a default config file with many fields commented out to show their defaults. This suggests that the user can uncomment the field and override the default. This is wrong for fields that aren't allowed in the config file likebuilddir
. This patch avoids generating a comment withbuilddir
in the default config.Fix #11050.
Manual QA Notes
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significant
in the changelog file.