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

cabal init -i should sanitize suggested package name (fix #8404) #8561

Merged
merged 7 commits into from
Nov 12, 2022

Conversation

ulysses4ever
Copy link
Collaborator

@ulysses4ever ulysses4ever commented Oct 29, 2022

An easy fix for #8404: cabal init -n already does the right thing, so this PR merely moves some code around so that cabal init -i can benefit from it too.


Please include the following checklist in your PR:

Please also shortly describe how you tested your change. Bonus points for added tests!

Copy link
Member

@emilypi emilypi left a comment

Choose a reason for hiding this comment

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

LGTM. were tests not affected? if so it would be good to have a regression against this.

@ulysses4ever
Copy link
Collaborator Author

Well, tests are failing currently, so I'll have to take a look.

@ulysses4ever ulysses4ever force-pushed the t8404-init-sanitize-pkg-name branch from b04c6e7 to 76f91dd Compare November 3, 2022 18:02
@ulysses4ever
Copy link
Collaborator Author

Ready for review!

Copy link
Member

@emilypi emilypi left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the regression.

@ulysses4ever ulysses4ever added squash+merge me Tell Mergify Bot to squash-merge and removed attention: needs-review labels Nov 9, 2022
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Nov 12, 2022
@mergify mergify bot merged commit e714824 into master Nov 12, 2022
@ulysses4ever
Copy link
Collaborator Author

@mergify backport 3.8

@mergify
Copy link
Contributor

mergify bot commented Nov 12, 2022

backport 3.8

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 12, 2022
* cabal init -i should sanitize suggested package name (fix #8404)

* fix existing tests

* fix more tests (golden)

* fix more tests (generators, simple)

* add regression test

* add changelog

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit e714824)
mergify bot added a commit that referenced this pull request Nov 12, 2022
cabal init -i should sanitize suggested package name (fix #8404) (backport #8561)
alexbiehl pushed a commit to alexbiehl/cabal that referenced this pull request Dec 15, 2022
… (haskell#8561)

* cabal init -i should sanitize suggested package name (fix haskell#8404)

* fix existing tests

* fix more tests (golden)

* fix more tests (generators, simple)

* add regression test

* add changelog

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
attention: needs-backport 3.8 merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days squash+merge me Tell Mergify Bot to squash-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants