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

Update release tag pattern #3260

Merged
merged 2 commits into from
Jan 18, 2023
Merged

Conversation

teodanciu
Copy link
Contributor

@teodanciu teodanciu commented Jan 17, 2023

so that releases get sorted in a deterministic way.

Description

Without this change, if we realease:
cardano-ledger-spec-1.0.0
cardano-ledger-spec-2.0.0
....
cardano-ledger-spec-10.0.0

then the latter won't be considered the latest, because the sorting is done alphabetically.

If we use cardano-ledger-spec-YYYY-MM-DD tag as proposed in this PR and tag based on the current date, then the provided alphabetical sorting should give us the desired sorting by latest.

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with fourmolu (which can be run with scripts/fourmolize.sh
  • Self-reviewed the diff

@teodanciu teodanciu marked this pull request as ready for review January 17, 2023 14:40
@teodanciu teodanciu requested a review from a team as a code owner January 17, 2023 14:40
@teodanciu teodanciu force-pushed the td/update-release-tag-pattern branch 2 times, most recently from 1044cea to cdc1ec3 Compare January 17, 2023 15:59
so the sorting of releases happens in a deterministic/more
understandable way.
@teodanciu teodanciu force-pushed the td/update-release-tag-pattern branch from cdc1ec3 to 0dda3a2 Compare January 17, 2023 17:12
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

fantastic!

@teodanciu teodanciu force-pushed the td/update-release-tag-pattern branch from 0dda3a2 to e11f33a Compare January 17, 2023 18:39
@JaredCorduan JaredCorduan merged commit 1459f50 into master Jan 18, 2023
@iohk-bors iohk-bors bot deleted the td/update-release-tag-pattern branch January 18, 2023 00:12
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