Skip to content
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

Building nightly #25

Open
SpieringsAE opened this issue Jan 7, 2024 · 0 comments
Open

Building nightly #25

SpieringsAE opened this issue Jan 7, 2024 · 0 comments

Comments

@SpieringsAE
Copy link
Contributor

I'm working on the nightly setting (also target selection this is working properly).
But there is an issue. In the cargo_command() function
https:/slint-ui/cargo-ui/blob/dbf4777f198a5e12382bb23aca1a82bcc5d3b97a/src/cargo.rs#L471C1-L474C2
The env variable CARGO is used to get the instance of cargo to put at the front of the commando.
However this links to (on linux) /home/user/.rustup/toolchains/(stable-toolchain)/bin/cargo
This will give an error:

error: no such command: `+nightly`

        Cargo does not handle `+toolchain` directives.
        Did you mean to invoke `cargo` through `rustup` instead?

While the actual cargo (on linux) /home/user/.cargo/bin/cargo does work

Is there a way to circumvent this?
I see 2 options:

  1. replace stable- with nightly- in the function when a nightly build is made
  2. just use cargo and not the CARGO env variable, however this will not work for someone who doesn´t have cargo on their path, but who doesn't really?.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant