mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
root: fix rust build with uv-installed Python (#21858)
This commit is contained in:
committed by
GitHub
parent
05005f4eb9
commit
aed634734b
@@ -14,6 +14,7 @@ pyproject.toml @goauthentik/backend
|
|||||||
uv.lock @goauthentik/backend
|
uv.lock @goauthentik/backend
|
||||||
Cargo.toml @goauthentik/backend
|
Cargo.toml @goauthentik/backend
|
||||||
Cargo.lock @goauthentik/backend
|
Cargo.lock @goauthentik/backend
|
||||||
|
build.rs @goauthentik/backend
|
||||||
go.mod @goauthentik/backend
|
go.mod @goauthentik/backend
|
||||||
go.sum @goauthentik/backend
|
go.sum @goauthentik/backend
|
||||||
.cargo/ @goauthentik/backend
|
.cargo/ @goauthentik/backend
|
||||||
|
|||||||
Generated
+1
@@ -198,6 +198,7 @@ dependencies = [
|
|||||||
"metrics-exporter-prometheus",
|
"metrics-exporter-prometheus",
|
||||||
"nix 0.31.2",
|
"nix 0.31.2",
|
||||||
"pyo3",
|
"pyo3",
|
||||||
|
"pyo3-build-config",
|
||||||
"sqlx",
|
"sqlx",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ nix = { version = "= 0.31.2", features = ["hostname", "signal"] }
|
|||||||
notify = "= 8.2.0"
|
notify = "= 8.2.0"
|
||||||
pin-project-lite = "= 0.2.17"
|
pin-project-lite = "= 0.2.17"
|
||||||
pyo3 = "= 0.28.3"
|
pyo3 = "= 0.28.3"
|
||||||
|
pyo3-build-config = "= 0.28.3"
|
||||||
regex = "= 1.12.3"
|
regex = "= 1.12.3"
|
||||||
reqwest = { version = "= 0.13.2", features = [
|
reqwest = { version = "= 0.13.2", features = [
|
||||||
"form",
|
"form",
|
||||||
@@ -260,6 +261,9 @@ default = ["core", "proxy"]
|
|||||||
core = ["ak-common/core", "dep:pyo3", "dep:sqlx"]
|
core = ["ak-common/core", "dep:pyo3", "dep:sqlx"]
|
||||||
proxy = ["ak-common/proxy"]
|
proxy = ["ak-common/proxy"]
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
pyo3-build-config.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ak-axum.workspace = true
|
ak-axum.workspace = true
|
||||||
ak-common.workspace = true
|
ak-common.workspace = true
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
fn main() {
|
||||||
|
#[cfg(feature = "core")]
|
||||||
|
{
|
||||||
|
pyo3_build_config::add_libpython_rpath_link_args();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -147,6 +147,7 @@ RUN --mount=type=bind,target=rust-toolchain.toml,src=rust-toolchain.toml \
|
|||||||
--mount=type=bind,target=Cargo.toml,src=Cargo.toml \
|
--mount=type=bind,target=Cargo.toml,src=Cargo.toml \
|
||||||
--mount=type=bind,target=Cargo.lock,src=Cargo.lock \
|
--mount=type=bind,target=Cargo.lock,src=Cargo.lock \
|
||||||
--mount=type=bind,target=.cargo/,src=.cargo/ \
|
--mount=type=bind,target=.cargo/,src=.cargo/ \
|
||||||
|
--mount=type=bind,target=build.rs,src=build.rs \
|
||||||
--mount=type=bind,target=src/,src=src/ \
|
--mount=type=bind,target=src/,src=src/ \
|
||||||
--mount=type=bind,target=packages/ak-axum,src=packages/ak-axum \
|
--mount=type=bind,target=packages/ak-axum,src=packages/ak-axum \
|
||||||
--mount=type=bind,target=packages/ak-common,src=packages/ak-common \
|
--mount=type=bind,target=packages/ak-common,src=packages/ak-common \
|
||||||
|
|||||||
Reference in New Issue
Block a user