Skip to content

Commit f8a9718

Browse files
committed
Updates Dockerfile.try to use pgrx; updates plrust/build script to use cargo-pgrx=0.8.2
1 parent ddc9fd0 commit f8a9718

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile.try

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ COPY --chown=${USER} . src/
4848
WORKDIR /src
4949

5050
# Build/install/remove all that is necessary in one step as to keep the resulting layer as small as possible.
51-
RUN PGX_VERSION=$(cargo metadata --format-version 1 | jq -r '.packages[]|select(.name=="pgx")|.version') && \
52-
cargo install cargo-pgx --force --version "$PGX_VERSION" && \
51+
RUN PGRX_VERSION=$(cargo metadata --format-version 1 | jq -r '.packages[]|select(.name=="pgrx")|.version') && \
52+
cargo install cargo-pgrx --force --version "$PGRX_VERSION" && \
5353
rustup component add llvm-tools-preview rustc-dev && \
5454
cd /src/plrustc && ./build.sh && cp ../build/bin/plrustc ~/.cargo/bin && \
55-
cargo pgx init --pg15 $(which pg_config) && \
55+
cargo pgrx init --pg15 $(which pg_config) && \
5656
cd /src/plrust && STD_TARGETS="$(uname -m)-postgres-linux-gnu" ./build && \
57-
cargo pgx install --release --features trusted && \
57+
cargo pgrx install --release --features trusted && \
5858
cd /src && find . -type d -name target | xargs rm -r && \
5959
rustup component remove llvm-tools-preview rustc-dev
6060

plrust/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cargo update -p pgrx
2929
cargo fetch
3030
if [ "$CI" != true ]; then
3131
cargo install cargo-pgrx \
32-
--version "0.7.2" \
32+
--version "0.8.2" \
3333
--locked # use the Cargo.lock in the pgrx repo
3434
fi
3535

0 commit comments

Comments
 (0)