Skip to content

update cargo pgrx to 0.8.2 to match app #610

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

Merged
merged 1 commit into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source ~/.cargo/env
cargo install cargo-pgrx --version "0.7.4"
cargo install cargo-pgrx --version "0.8.2" --locked

if [[ ! -d ~/.pgrx ]]; then
cargo pgrx init
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
with:
working-directory: pgml-extension
command: install
args: cargo-pgrx --version "0.7.4"
args: cargo-pgrx --version "0.8.2" --locked
- name: pgrx init
uses: postgresml/gh-actions-cargo@master
with:
Expand Down
2 changes: 1 addition & 1 deletion pgml-docs/docs/developer_guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Once there, you can initialize `pgrx` and get going:

#### Pgx command line and environments
```commandline
cargo install cargo-pgrx --version "0.7.4" && \
cargo install cargo-pgrx --version "0.8.2" --locked && \
cargo pgrx init # This will take a few minutes
```

Expand Down
4 changes: 2 additions & 2 deletions pgml-docs/docs/user_guides/setup/v2/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ sudo apt-get install postgresql

```bash
export POSTGRES_VERSION=15
cargo install cargo-pgrx --version "0.7.4" && \
cargo install cargo-pgrx --version "0.8.2" --locked && \
cargo pgrx init --pg${POSTGRES_VERSION} /usr/bin/pg_config && \
cargo pgrx package
```
Expand All @@ -108,7 +108,7 @@ sudo apt-get install postgresql
```bash
export POSTGRES_VERSION=15
cp docker/Cargo.toml.no-python Cargo.toml && \
cargo install cargo-pgrx --version "0.7.4" && \
cargo install cargo-pgrx --version "0.8.2" --locked && \
cargo pgrx init --pg${POSTGRES_VERSION} /usr/bin/pg_config && \
cargo pgrx package
```
Expand Down
2 changes: 1 addition & 1 deletion pgml-extension/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN useradd postgresml -m -s /bin/bash -G sudo
RUN echo 'postgresml ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
USER postgresml
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version "0.7.4"
RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version "0.8.2" --locked
RUN $HOME/.cargo/bin/cargo pgrx init
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
RUN sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
Expand Down
6 changes: 3 additions & 3 deletions pgml-extension/docker/Cargo.toml.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ python = ["pyo3"]
cuda = ["xgboost/cuda", "lightgbm/cuda"]

[dependencies]
pgrx = "=0.7.4"
pgrx-pg-sys = "=0.7.4"
pgrx = "=0.8.2"
pgrx-pg-sys = "=0.8.2"
xgboost = { git="https://github.com/postgresml/rust-xgboost.git", branch = "master" }
once_cell = "1"
rand = "0.8"
Expand Down Expand Up @@ -49,7 +49,7 @@ flate2 = "1.0"
csv = "1.1"

[dev-dependencies]
pgrx-tests = "=0.7.4"
pgrx-tests = "=0.8.2"

[profile.dev]
panic = "unwind"
Expand Down
6 changes: 3 additions & 3 deletions pgml-extension/docker/Cargo.toml.no-python
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ python = ["pyo3"]
cuda = ["xgboost/cuda", "lightgbm/cuda"]

[dependencies]
pgrx = "=0.7.4"
pgrx-pg-sys = "=0.7.4"
pgrx = "=0.8.2"
pgrx-pg-sys = "=0.8.2"
xgboost = { git="https://github.com/postgresml/rust-xgboost.git", branch = "master" }
once_cell = "1"
rand = "0.8"
Expand Down Expand Up @@ -49,7 +49,7 @@ flate2 = "1.0"
csv = "1.1"

[dev-dependencies]
pgrx-tests = "=0.7.4"
pgrx-tests = "=0.8.2"

[profile.dev]
panic = "unwind"
Expand Down