Skip to content

Commit

Permalink
Add support for pgrx 0.9.7 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstanton authored Jul 11, 2023
1 parent 0dc98e8 commit feb32c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/builder-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- "0.8.4"
- "0.9.0"
- "0.9.1"
- "0.9.7"
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pg-trunk"
version = "0.8.1"
version = "0.8.2"
edition = "2021"
authors = ["Steven Miller", "Ian Stanton"]
description = "A package manager for PostgreSQL extensions"
Expand Down
6 changes: 4 additions & 2 deletions cli/src/commands/pgrx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ pub enum PgrxBuildError {
}

fn semver_from_range(pgrx_range: &str) -> Result<String, PgrxBuildError> {
let versions = ["0.9.1", "0.9.0", "0.8.4", "0.8.3", "0.8.0", "0.7.4"];
let versions = [
"0.9.7", "0.9.1", "0.9.0", "0.8.4", "0.8.3", "0.8.0", "0.7.4",
];

if versions.contains(&pgrx_range) {
// If the input is already a specific version, return it as-is
Expand Down Expand Up @@ -255,6 +257,6 @@ mod tests {
let result = semver_from_range(">=0.8.0, <0.9.0");
assert_eq!(result.unwrap(), "0.8.4");
let result = semver_from_range(">=0.9.0, <0.10.0");
assert_eq!(result.unwrap(), "0.9.1");
assert_eq!(result.unwrap(), "0.9.7");
}
}

0 comments on commit feb32c9

Please sign in to comment.