Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Set current dir at check_wasm_toolchain_installed at wasm-builder #10284

Merged

Conversation

MOZGIII
Copy link
Contributor

@MOZGIII MOZGIII commented Nov 16, 2021

This is an addition to #9926, #9926 (comment).

This takes care of the case where the project root contains .cargo dir, and the code is executing in Github Actions. Long story short, for some reason with this combination, the project's .cargo/config.toml is picked up.
This change makes it work.

@MOZGIII MOZGIII changed the title Set current dir at check_wasm_toolchain_installed Set current dir at check_wasm_toolchain_installed at wasm-builder Nov 16, 2021
@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Nov 17, 2021
@@ -120,6 +120,7 @@ fn check_wasm_toolchain_installed(
let manifest_path = temp.path().join("Cargo.toml").display().to_string();

let mut build_cmd = cargo_command.command();
build_cmd.current_dir(&temp);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment here for what this is.

@bkchr
Copy link
Member

bkchr commented Nov 17, 2021

And please merge master to make cargo fmt happy.

@MOZGIII
Copy link
Contributor Author

MOZGIII commented Nov 18, 2021

Code review comments addressed, ready to proceed.

@bkchr bkchr added the D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit label Nov 18, 2021
@bkchr
Copy link
Member

bkchr commented Nov 18, 2021

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Bot will approve on the behalf of @bkchr, since they are a team lead, in an attempt to reach the minimum approval count

@paritytech-processbot paritytech-processbot bot merged commit 0214f26 into paritytech:master Nov 18, 2021
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
…ritytech#10284)

* Set current dir at check_wasm_toolchain_installed

* Add comments
bernardo-xxnet pushed a commit to xx-labs/substrate that referenced this pull request May 26, 2022
…ritytech#10284)

* Set current dir at check_wasm_toolchain_installed

* Add comments
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…ritytech#10284)

* Set current dir at check_wasm_toolchain_installed

* Add comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants