Skip to content

Commit

Permalink
Bump pgx vers trunk (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstanton authored Apr 19, 2023
1 parent f6ccb30 commit 2257660
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions trunk/cli/.github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
pgx_version:
- "0.7.1"
- "0.7.2"
- "0.7.3"
- "0.7.4"
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions trunk/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "pg-trunk"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
authors = ["Steven Miller", "Ian Stanton"]
description = "A package manager for PostgreSQL extensions"
homepage = "https://trnk.io"
homepage = "https://pgtrunk.io"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/coredb-io/trunk"
repository = "https://github.com/coredb-io/coredb"

[[bin]]
name = "trunk"
Expand Down
4 changes: 2 additions & 2 deletions trunk/cli/src/commands/pgx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub enum PgxBuildError {
}

fn semver_from_range(pgx_range: &str) -> Result<String, PgxBuildError> {
let versions = ["0.7.2", "0.7.1"];
let versions = ["0.7.4", "0.7.3", "0.7.2", "0.7.1"];

if versions.contains(&pgx_range) {
// If the input is already a specific version, return it as-is
Expand Down Expand Up @@ -419,6 +419,6 @@ mod tests {
fn test_semver_from_range_semver_range() {
// Test that a semver range is converted to the highest matching version
let result = semver_from_range(">=0.7.1, <0.8.0");
assert_eq!(result.unwrap(), "0.7.2");
assert_eq!(result.unwrap(), "0.7.4");
}
}

0 comments on commit 2257660

Please sign in to comment.