Skip to content

Conversation

syvb
Copy link
Member

@syvb syvb commented Jun 15, 2023

No description provided.

Copy link

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

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

Your current version on your main branch is likely fine but you will want to update to 0.9.7 instead due to a critical bug that affects 0.9.1, unfortunately.

@syvb syvb changed the title Update to pgrx 0.9.1 Update to pgrx 0.9.7 Jun 30, 2023
@syvb syvb force-pushed the sv/pgrx-0.9.1 branch 2 times, most recently from eb93356 to ae22b99 Compare July 4, 2023 15:50
@syvb syvb force-pushed the sv/pgrx-0.9.1 branch from ae22b99 to 6dd40f6 Compare July 4, 2023 16:01
@syvb syvb requested review from WireBaron and thatzopoulos July 4, 2023 17:12
Comment on lines 96 to 107
fn get_pgrx_version(cargo_toml_contents: &str) -> Version {
let cargo = cargo_toml_contents
.parse::<Document>()
.expect("invalid Cargo.toml");

cargo["dependencies"]["pgx"]
cargo["dependencies"]["pgrx"]
.as_str()
.expect("expected pgx to only have a version")
.expect("expected pgrx to only have a version")
.trim_start_matches(['=', '^', '~'].as_slice())
.parse()
.expect("cannot parse pgx version")
.expect("cannot parse pgrx version")
}
Copy link
Contributor

@thatzopoulos thatzopoulos Jul 5, 2023

Choose a reason for hiding this comment

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

I think we might run into some issues with the update-tester here. After checking out a git tag, get_pgrx_version() will read the new Cargo.toml from the filesystem, which will still be listed as 'pgx' for all but this newest version which I think will cause a panic. I don't think any of the other update-tester changes should cause any problems.

@thatzopoulos thatzopoulos self-requested a review July 6, 2023 16:05
@syvb
Copy link
Member Author

syvb commented Jul 6, 2023

bors r+

@bors bors bot merged commit 3bdec38 into main Jul 6, 2023
@bors bors bot deleted the sv/pgrx-0.9.1 branch July 6, 2023 16:26
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.

4 participants