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 to pgrx 0.9.7 #762

Merged
merged 5 commits into from
Jul 6, 2023
Merged

Update to pgrx 0.9.7 #762

merged 5 commits into from
Jul 6, 2023

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.

extension/Cargo.toml Outdated Show resolved Hide resolved
extension/Cargo.toml Outdated Show resolved Hide resolved
tools/dependencies.sh Outdated Show resolved Hide resolved
Readme.md Outdated Show resolved Hide resolved
@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
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
15 checks passed
@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