-
Notifications
You must be signed in to change notification settings - Fork 53
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
Update to pgrx 0.9.7 #762
Conversation
There was a problem hiding this 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.
eb93356
to
ae22b99
Compare
tools/update-tester/src/installer.rs
Outdated
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") | ||
} |
There was a problem hiding this comment.
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.
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
No description provided.