removing cargo.toml from patch

This commit is contained in:
Suhas Thalanki
2025-05-19 17:06:53 -04:00
parent 6635e1e2bc
commit e5804eb3e6
2 changed files with 1 additions and 19 deletions

View File

@@ -1356,6 +1356,7 @@ RUN wget https://gitlab.com/dalibo/postgresql_anonymizer/-/archive/2.1.0/postgre
mkdir pg_anon-src && cd pg_anon-src && tar xzf ../pg_anon.tar.gz --strip-components=1 -C . && \
find /usr/local/pgsql -type f | sed 's|^/usr/local/pgsql/||' > /before.txt && \
sed -i 's/pgrx = "0.14.1"/pgrx = { git = "https:\/\/github.com\/thesuhas\/pgrx.git", branch = "expose_guc_assign_hook", features = [ "unsafe-postgres" ] }/g' Cargo.toml && \
sed -i 's/pgrx-tests = "0.14.1"/pgrx-tests = { git = "https:\/\/github.com\/thesuhas\/pgrx.git", branch = "expose_guc_assign_hook" }/g' Cargo.toml && \
patch -p1 < /ext-src/anon_v2.patch
FROM rust-extensions-build-pgrx14 AS pg-anon-pg-build

View File

@@ -1,22 +1,3 @@
diff --git a/Cargo.toml b/Cargo.toml
index 1037705..9f2ffee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,12 +24,12 @@ fake = { version = "4.3.0", features = ["bigdecimal", "chrono", "http", "rust_de
image = "0.25.5"
md-5 = "0.10.6"
paste = "1.0"
-pgrx = "0.14.1"
+pgrx = { git = "https://github.com/thesuhas/pgrx.git", branch = "expose_guc_assign_hook" }
rand = "0.8.5"
regex = "1.10.2"
[dev-dependencies]
-pgrx-tests = "0.14.1"
+pgrx-tests = { git = "https://github.com/thesuhas/pgrx.git", branch = "expose_guc_assign_hook" }
[profile.dev]
panic = "unwind"
diff --git a/sql/anon.sql b/sql/anon.sql
index 0cdc769..f6cc950 100644
--- a/sql/anon.sql