Skip to content

Commit

Permalink
support pgrx to 0.11.0 (#505)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Hendel <[email protected]>
  • Loading branch information
ChuckHend and ChuckHend authored Oct 23, 2023
1 parent cc2311e commit aa15c49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/builder-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- "0.9.7"
- "0.9.8"
- "0.10.0"
- "0.10.1"
- "0.10.2"
- "0.11.0"
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.11.5"
version = "0.11.6"
edition = "2021"
authors = ["Steven Miller", "Ian Stanton", "Vinícius Miguel"]
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 @@ -57,7 +57,8 @@ pub enum PgrxBuildError {

fn semver_from_range(pgrx_range: &str) -> Result<String, PgrxBuildError> {
let versions = [
"0.10.0", "0.9.8", "0.9.7", "0.9.1", "0.9.0", "0.8.4", "0.8.3", "0.8.0", "0.7.4",
"0.11.0", "0.10.2", "0.10.1", "0.10.0", "0.9.8", "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) {
Expand Down Expand Up @@ -254,6 +255,7 @@ mod tests {
assert_eq!(result.unwrap(), "0.8.3");
let result = semver_from_range("0.8.4");
assert_eq!(result.unwrap(), "0.8.4");
let result = semver_from_range("0.8.4");
}

#[test]
Expand All @@ -273,6 +275,6 @@ mod tests {
let result = semver_from_range(">=0.9.0, <0.10.0");
assert_eq!(result.unwrap(), "0.9.8");
let result = semver_from_range(">=0.10.0, <0.11.0");
assert_eq!(result.unwrap(), "0.10.0");
assert_eq!(result.unwrap(), "0.10.2");
}
}

0 comments on commit aa15c49

Please sign in to comment.