Skip to content
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

Use vendored feature flag with Axum - network is being used #1229

Open
i-am-logger opened this issue Dec 4, 2024 · 1 comment
Open

Use vendored feature flag with Axum - network is being used #1229

i-am-logger opened this issue Dec 4, 2024 · 1 comment

Comments

@i-am-logger
Copy link

i'm using nix build to build a crate and i get the below error:

my Cargo.toml has this:

utoipa-swagger-ui = { version = "8.0.2", features = ["axum", "vendored"] }

warning: Git tree '/home/snick/Current-Rice/5wall/fw-mono' is dirty
error: builder for '/nix/store/n2ky8201x5ydnr9w6lszp9hdi60m28ir-rust-workspace-deps-unknown.drv' failed with exit code 101;
last 25 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/bzirxdiiryc68lkvnf093zj4rjijry4d-dummy-src
> source root is dummy-src
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> [naersk] cargo_version (read): 1.82.0 (8f40fc59f 2024-08-21)
> [naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
> [naersk] cargo_release: --release
> [naersk] cargo_options:
> [naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --message-format=$cargo_message_format
> [naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
> [naersk] RUST_TEST_THREADS: 32
> [naersk] cargo_bins_jq_filter: .
> [naersk] cargo_build_output_json (created): /build/tmp.sg9NsDNq8G
> [naersk] RUSTFLAGS:
> [naersk] CARGO_BUILD_RUSTFLAGS:
> [naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/w6qdi5h51sjygf1fxs4mlp7f0gp6nvd2-crates-io-dependencies=/sources --remap-path-prefix /nix/store/wpqibkpp4pfkpgkw4phajmazal6yf1hi-git-dependencies=/sources
> Running phase: buildPhase
> cargo build $cargo_release -j "$NIX_BUILD_CORES" --message-format=$cargo_message_format
> error: no matching package named utoipa-swagger-ui-vendored found
> location searched: registry crates-io
> required by package utoipa-swagger-ui v8.0.2
> ... which satisfies dependency utoipa-swagger-ui = "^8.0.2" (locked to 8.0.2) of package api v0.1.0 (/build/dummy-src/api)
> [naersk] cargo returned with exit code 101, exiting
For full logs, run 'nix log /nix/store/n2ky8201x5ydnr9w6lszp9hdi60m28ir-rust-workspace-deps-unknown.drv'.
error: 1 dependencies of derivation '/nix/store/vkcf07lm1zmiafk7lrmzhgw7pffn20g4-rust-workspace-unknown.drv' failed to build

@juhaku
Copy link
Owner

juhaku commented Jan 2, 2025

Okay, that's weird. I am not familiar with nix, and I am wondering is there anything else from the cargo build log perhaps which would indicate whether network was used or something was tried to download.

The docs.rs build is a sandbox as well without outside access and there I am using the vendored feature flag. It would not pass the build there if it did try to download something somewhere. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants