-
Notifications
You must be signed in to change notification settings - Fork 365
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
Private Crate Repository Issues #1206
Comments
Discussion in matrix |
To confirm, you got the same behaviour when installing cross from current main? The error for this sample is
Is the error the same when using |
Thanks for the reply, I have rerun the job with the only change being to add
|
The issue boiled down to two things
|
I really appreciate your help on this one @Emilgardis, thanks for looking into it and finding a fix so quickly! 🦾😎 |
Checklist
Describe your issue
I am trying to use cross to cross compile my project for a
armv7-unknown-linux-gnueabihf
(although this issue is also present when using cross to target the host target architecture) target using a Gitlab CI/CD shared runner. I have seen the Gitlab CI sample and the cross remote documentation, both of which I have implemented the best I can tell.The issue I have is that my project contains dependencies to private Gitlab repositories. I saw the data volumes section of the cross remote documentation and have tried setting
CROSS_REMOTE_COPY_REGISTRY
andCROSS_REMOTE_COPY_CACHE
environment variables, but whatever I do, cross always tries to fetch my private repos at compile time - and of course fails because it cannot authenticate. Before running the cross build command I have tried runningcargo update
and `` but still the same issue. It appears as though maybe it fails to copy over the cached packages?I even tried adding this to my Cross.toml to use the job token and https to clone the private crates (with
CARGO_NET_GIT_FETCH_WITH_CLI
set.) but it still failed - almost like the pre-build command was not run.I have spent several days experimenting with all the options and am at the point where it looks like it might be an issue with cross - although my user error is always a possibility.
Related issues:
#401
What target(s) are you cross-compiling for?
armv7-unknown-linux-gnueabihf
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
.gitlab-ci.yml
Job logs
job_log.txt
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: