You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
Rust Cargo Build Pack 0.9.0
https://github.com/paketo-community/cargo
Build Configuration:
$BP_CARGO_INSTALL_ARGS --locked additional arguments to pass to Cargo install
$BP_CARGO_INSTALL_TOOLS additional tools to be add with Cargo install
$BP_CARGO_INSTALL_TOOLS_ARGS additional arguments to pass to Cargo install for tools
$BP_CARGO_TINI_DISABLED false Skip installing tini
$BP_CARGO_WORKSPACE_MEMBERS the subset of workspace members for Cargo to install
$BP_DISABLE_SBOM false Skip running SBOM scan
$BP_EXCLUDE_FILES colon separated list of glob patterns, matched source files are removed
$BP_INCLUDE_FILES static/*:templates/*:public/*:html/* colon separated list of glob patterns, matched source files are included
Tini 0.19.0: Contributing to layer
Downloading from https://github.com/krallin/tini/releases/download/v0.19.0/tini-amd64
Verifying checksum
Copying to /layers/paketo-community_cargo/tini
Creating cached target directory /workspace/target
Rust Application: Contributing to layer
File modification times not restored
File modification times not restored
File modification times not restored
cargo install --locked --color=never --root=/layers/paketo-community_cargo/Cargo --path=.
Installing function v0.1.0 (/workspace)
error: failed to get `actix-http` as a dependency of package `function v0.1.0 (/workspace)`
Caused by:
failed to load source for dependency `actix-http`
Caused by:
Unable to update registry `crates-io`
Caused by:
usage of sparse registries requires `-Z sparse-registry`
This line looks suspicious but I have not investigated further
Unable to update registry `crates-io`
The text was updated successfully, but these errors were encountered:
No9
changed the title
kn func 1.9.0 fails to build
kn func 1.9.0 fails to build a Rust Service
Feb 27, 2023
Yes, that could be. We set CARGO_REGISTRIES_CRATES_IO_PROTOCOL to sparse because it is way, way faster for builds.
At the moment, it's not something you can change but if there's a need to be flexible we could accept a PR that allows the user to override it. Presently, we just set that env variable but if you check to see if it's set first, and skip setting if it is set, that would allow the user to override it.
Using the following commands:
The build errors with the following output:
This line looks suspicious but I have not investigated further
The text was updated successfully, but these errors were encountered: