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

v1.18: sdk: Rederive Copy on Rent and EpochSchedule #1744

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

joncinque
Copy link

Problem

The removal of the Copy derivation on Rent and EpochSchedule in solana-labs#32767 is a breaking change, and wasn't signaled to downstream users who were depending on the Copy behavior, such as https://discord.com/channels/428295358100013066/966782389839876096/1250593405118058616

Summary of Changes

The breaking change is fine for 2.0, but we should at least re-establish the Copy derivation for 1.18 to avoid unnecessary downstream breakage.

I should have realized this while reviewing the SPL PRs but didn't think it would impact anyone (wrongly).

Note that this PR doesn't revert the previous PR, but simply re-adds the Copy derivation and adds a few #[allow(...)]s for clippy to pass, so there's no change in behavior.

Fixes #

@joncinque joncinque requested a review from apfitzge June 14, 2024 16:50
@joncinque joncinque requested a review from a team as a code owner June 14, 2024 16:50
@apfitzge
Copy link

Like the approach of not reverting!

Copy link

@sakridge sakridge left a comment

Choose a reason for hiding this comment

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

thanks!

@joncinque joncinque merged commit 6a36903 into anza-xyz:v1.18 Jun 17, 2024
36 checks passed
@joncinque joncinque deleted the rederiveclone branch June 17, 2024 12:41
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
sdk: Rederive Clone on Rent and EpochSchedule
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.

3 participants