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

Windows installation fails building ink_linting #649

Closed
ascjones opened this issue Jul 14, 2022 · 2 comments · Fixed by #690
Closed

Windows installation fails building ink_linting #649

ascjones opened this issue Jul 14, 2022 · 2 comments · Fixed by #690
Labels
bug Something isn't working ci something to do with continious integration

Comments

@ascjones
Copy link
Collaborator

Recently the windows CI has started to fail with Error: environment variable not found: RUSTUP_TOOLCHAIN from the dylint-link linker.

So the build.rs does in fact remove this environment variable, which is required so as not to override the required version for the child cargo invocation in the ink_linting/rust-toolchain file. However this has always worked previously and it also continues to work on Linux. My current working assumption is that there is a bug in the recent 1.25 release of rustup perhaps by not setting RUSTUP_TOOLCHAIN for the child process where it should. There seem to be a couple of other windows specific issues e.g. rust-lang/rustup#3036, but not exactly the same issue we are having.

I have rolled back rustup to 1.24.3 on a local Windows machine and that seems to fix the issue, however there doesn't seem to be a way to control the version of rustup installed via actions-krs.

A couple of ideas of how to proceed:

  1. Confirm issue is in rustup and find and fix it.
  2. Remove the cmd.env_remove("RUSTUP_TOOLCHAIN"); line in build.rs and instead add +nightly-2022-06-30 (from the rust-toolchain file). This arg would take precedence over the current RUST_TOOLCHAIN. One issue with this is that 1.25 also has a bug which currently prevents this.
@ascjones ascjones added the ci something to do with continious integration label Jul 14, 2022
@bugproof
Copy link

So cargo install cargo-contract is broken on Windows?

@ascjones
Copy link
Collaborator Author

ascjones commented Aug 1, 2022

So cargo install cargo-contract is broken on Windows?

With the latest version of rustup, yes.

@ascjones ascjones added the bug Something isn't working label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci something to do with continious integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants