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 create-release.hs script #1355

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Fix create-release.hs script #1355

merged 1 commit into from
Jan 9, 2025

Conversation

geo2a
Copy link
Contributor

@geo2a geo2a commented Jan 9, 2025

This PR fixes the ./scripts/release/create-release.hs script to:

  • traverse packages in prescribed order
  • do not include zeros in version patterns for dependencies

When cutting the previous release (#1354), I've noticed that the scripts does not update the dependencies in the .cabal files. This was due to traversing the packages in a wrong order because of storing them in Data.Map and also because of a quirk in the version patterns.

I've verified that the updated scripts has the expected behaviour on on the repo state pre #1354. I do not think it's worth it to add tests for the script. Hopefully, I have only fixed bugs and not introduced new ones!

- Traverse packages in prescribed order
- Do not include zeros in version patterns for dependencies

stylish-haskell
Copy link
Contributor

@jasagredo jasagredo left a comment

Choose a reason for hiding this comment

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

Thanks!

@geo2a geo2a added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit 3b0e46a Jan 9, 2025
17 of 19 checks passed
@geo2a geo2a deleted the geo2a/fix-create-release-script branch January 9, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants