Closed EvilWatermelon closed 2 weeks ago
That is because the recent release needs curl to download the swagger UI. However you could use the reqwest feature flag to use reqwest to download as previously or you could use the vendored feature flag to use the vendored swagger UI like the pre 6 releases did.
On Thu, 13 Jun 2024, 18:14 EvilWatermelon, @.***> wrote:
I think I found a bug during compiling time of utoipa-swagger-ui
error: failed to run custom build command for
utoipa-swagger-ui v7.1.0
Caused by: process didn't exit successfully:/var/www/app/target/release/build/utoipa-swagger-ui-5aefb769c98b9778/build-script-build
(exit status: 101) --- stdout OUT_DIR: /var/www/app/target/release/build/utoipa-swagger-ui-160990b3215d4eeb/out SWAGGER_UI_DOWNLOAD_URL: https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.12.zip start download to : "/var/www/app/target/release/build/utoipa-swagger-ui-160990b3215d4eeb/out/v5.17.12.zip" cargo:rerun-if-env-changed=SWAGGER_UI_DOWNLOAD_URL reqwest feature: Err(NotPresent) trying to download usingcurl
system package --- stderr thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/utoipa-swagger-ui-7.1.0/build.rs:181:46: calledResult::unwrap()
on anErr
value: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run withRUST_BACKTRACE=1
environment variable to display a backtrace— Reply to this email directly, view it on GitHub https://github.com/juhaku/utoipa/issues/958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJDHCDWQTLITEX26UMKPQLZHFWJ5AVCNFSM6AAAAABJICOBZWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TANZVGM3DMNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I think I found a bug during compiling time of
utoipa-swagger-ui