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

Drop dependency on cardano-prelude #4841

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Jan 18, 2025

Description

bytestring-0.11.3.0 was accidentally released with unsafeIndex hidden from the export list. This issues was promptly fixed in bytestring-0.11.4.0. So, we just need to exclude the affected version in cabal file instead of rely on some custom implementation of the same function in a package that we don't normally use in ledger.

Checklist

  • Commits in meaningful sequence and with useful messages
  • Tests added or updated when needed
  • CHANGELOG.md files updated for packages with externally visible changes

    New section is never added with the code changes. (See RELEASING.md)
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary

    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Code formatted (use scripts/fourmolize.sh)
  • Cabal files formatted (use scripts/cabal-format.sh)
  • hie.yaml updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@lehins lehins requested a review from a team as a code owner January 18, 2025 03:45
@lehins lehins force-pushed the lehins/remove-usage-of-cardano-prelude branch from ba003e0 to e874b9b Compare January 18, 2025 03:54
@lehins lehins mentioned this pull request Jan 18, 2025
9 tasks
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Looks good to me

Reflect usage of `unsafeIndex` with the bounds of `bytestring`.

`bytestring-0.11.3.0` was accidentally released with `unsafeIndex`
hidden from the export list. This issues was promptly fixed in
`bytestring-0.11.4.0`. So, we just need to exclude the affected version
in cabal file instead of rely on some custom implementation of the function
in a package that we don't normally use in ledger.
@lehins lehins force-pushed the lehins/remove-usage-of-cardano-prelude branch from e874b9b to 8105bb2 Compare January 21, 2025 22:11
@lehins lehins enabled auto-merge January 21, 2025 22:12
@lehins lehins merged commit 32106b9 into master Jan 22, 2025
153 of 158 checks passed
@lehins lehins deleted the lehins/remove-usage-of-cardano-prelude branch January 22, 2025 00:18
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