Closed nkozheninEvinced closed 1 year ago
Nevermind, I added an option to pass a target location, let me know if you want a PR
cargo-cp-artifact
reads the location of the path directly from the emitted JSON. It shouldn't be necessary to change the path. If the Neon package isn't root in the project, it shouldn't matter because the paths that cargo emits are absolute.
Is this because cross
is emitting the path from inside a docker container, but cargo-cp-artifact
is running outside the container and the paths don't match?
Yes, that's right. cargo-cp-artifact
indeed ran outside of container. In the end I even scrapped passing an option to cargo-cp-artifact
and decided that writing a custom solution for copying binaries would be easier
That's reasonable! The only thing cargo-cp-artifact
does is copy files. The reason it exists is because there's no one place that the binary might end up and we wanted it to work out of the box for everyone.
Ideally cargo
would have this functionality built in.
Hello, I have a problem with cargo-cp-artefact. So, when the time comes to copy the artefact from target to prebuilds I stambled upon this problem:
I am using cross-rs to build Linux binary on Windows.
Any ideas how to solve that?