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
@ckoehler I didn't had a chance to look at the issue in detail, I quickly skimmed over it.
but this fixes are in general for every package that relies on cargo/build.
In wolfi-dev/os repository, you can do the following to test it out.
make dev-container
make package/geckodriver
If you add your config in there and build it then you should be able to proceed ahead. In general, I always use the dev-container environment for building purpose.
If you still want to build without docker then maybe this command is more accurate than a simple melange build
This issue tracks improving our
cargo/build
pipeline to be more flexible and allow more wide usage of this pipeline across our package repositories.We've certain limitations when we use cargo/build pipeline and below are the notes about the same.
.
The reason for failure here is that
cargo
stores the binary root of the tree undertarget
directory.In here, we change the directory to a different one and binary is stored at root.
After build, When we are invoking the
install
command in the pipeline it's not able to find the directory.The solution here is to use
CARGO_TARGET_DIR
environment variable but maybe there's also a simpler way to do this.unlike go
-o
flag, cargo doesn't have a similar flag but there's an experimental feature in cargo to specify custom binary name in there.https://doc.rust-lang.org/cargo/reference/unstable.html#different-binary-name
cargo new foo cd foo cargo run cargo build
In above case, the binary name is always
foo
If we want to change the binary name then we'll have to specify it something like this.
and then when we invoke
cargo build
orcargo run
the binary name issammy
The text was updated successfully, but these errors were encountered: