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

Fix cabal init should not suggest Cabal < 2.0 #8700

Merged
merged 2 commits into from
Jan 29, 2023

Conversation

BasLaa
Copy link
Collaborator

@BasLaa BasLaa commented Jan 25, 2023

Any Cabal release prior to 2.0 is no longer working, so cabal should not suggest users to set the cabal-version on packages to less than 2.0 as mentioned in #8680.

With this, the least choice offered to users is 2.0.

@@ -286,7 +286,6 @@ cabalVersionPrompt flags = getCabalVersion flags $ do

displayCabalVersion :: CabalSpecVersion -> String
displayCabalVersion v = case v of
CabalSpecV1_24 -> "1.24 (legacy)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

After this removal, '+' on the next line doesn't make sense, probably.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, How can I cancel checks that are in progress? Under Actions -> workflow I can't seem to find a cancel button.

Copy link
Member

Choose a reason for hiding this comment

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

How can I cancel checks that are in progress?

Don't worry. However, I've just invited you to Triage the repo, so there's a small chance you can see the cancel buttons now (but remember to never mouse over the big red button!).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for that. I believe this solves issue #8680. I also added a changelog file as it was stated in the contribution guide.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

One thing I was wondering about; I ran the test suite locally on my computer, and I got that a test failed, whereas here everything passes. Is there a known reason for that?

Copy link
Collaborator

@ulysses4ever ulysses4ever Jan 25, 2023

Choose a reason for hiding this comment

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

I definitely used to have tests failing locally and succeeding in CI. I think one reason may be that some system dependencies may be absent on your machine. It's not nice but it's probably fine.

@BasLaa BasLaa marked this pull request as ready for review January 25, 2023 17:19
@BasLaa
Copy link
Collaborator Author

BasLaa commented Jan 27, 2023

Is there anything I need to do for this PR now, or just wait for approving reviews?

Copy link
Member

@Kleidukos Kleidukos left a comment

Choose a reason for hiding this comment

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

LGTM

@ulysses4ever ulysses4ever added the squash+merge me Tell Mergify Bot to squash-merge label Jan 27, 2023
@ulysses4ever
Copy link
Collaborator

@BasLaa thanks! Should be merged in two days automatically if no other comments are received.

@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Jan 29, 2023
@mergify mergify bot merged commit acbc0f3 into haskell:master Jan 29, 2023
@BasLaa BasLaa deleted the fix-cabal-init-2.0 branch February 2, 2023 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants