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

Fixup #9614: make config file extraction from help text more robust #9667

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

andreasabel
Copy link
Member

@andreasabel andreasabel commented Jan 28, 2024

The previous test (PR #9614) did not work when the config file was absent, because then the help text would add one more line at the end (see issue #535).

The new test looks for the exact line printed before the line with the config file.

We test both scenarios, with config file present or absent.

See: #9614 (comment)

The previous test (PR #9614) did not work when the config file was
absent, because then the help text would add one more line at the
end (see issue #535).

The new test looks for the exact line printed before the line with the
config file.

We test both scenarios, with config file present or absent.
@andreasabel
Copy link
Member Author

Thanks for the reviews!

CI fails on WIndows: I seem to have a CRLF issue on Windows. Hang on, I'll submit a patch.

@andreasabel andreasabel added the pr: squash PR should be squashed upon merge label Jan 28, 2024
Copy link
Collaborator

@ffaf1 ffaf1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, the correct label is squash+merge me.

@andreasabel andreasabel added squash+merge me Tell Mergify Bot to squash-merge and removed attention: needs-review pr: squash PR should be squashed upon merge labels Jan 29, 2024
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Jan 31, 2024
@mergify mergify bot merged commit 46a7bfc into master Jan 31, 2024
50 checks passed
@mergify mergify bot deleted the fixup-pr-9614 branch January 31, 2024 09:29
erikd pushed a commit to erikd/cabal that referenced this pull request Apr 22, 2024
…obust (haskell#9667)

* Fixup haskell#9614: make config file extraction from help text more robust

The previous test (PR haskell#9614) did not work when the config file was
absent, because then the help text would add one more line at the
end (see issue haskell#535).

The new test looks for the exact line printed before the line with the
config file.

We test both scenarios, with config file present or absent.

* Trim lines before searching the marker to work around CRLF issues.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-testsuite merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days re: config-file Concerning the cabal configuration file and the `--config-file` option squash+merge me Tell Mergify Bot to squash-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants