-
Notifications
You must be signed in to change notification settings - Fork 130
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
"toolchain" is not obeyed when running Duckscript #658
Comments
@sffc thanks for reporting. as an alternative, i suggest to do something which is a bit messy (sorry). [tasks.cargo-mycommand]
toolchain = "nightly-2022-04-05"
command = "cargo"
args = ["mycommand", "@@remove-empty(SOME_OPTIONAL_ARG)"]
[tasks.longscript]
script_runner = "@duckscript"
script = '''
#some really long script with lots of logic
# call cargo but with defined toolchain and maybe even pass some arg
set_env SOME_OPTIONAL_ARG hello
cm_run_task cargo-mycommand
#more script content that does amazing things
''' |
Thanks for the reply!
That's basically correct, and your workaround should generally work, except in my case the invocation of I guess in general my expectation is that the |
@sffc got it. rustup run toolchainvalue originalcommand so my workaround might actually work for that use case as well. no? |
Hmm. I think part of the confusion is that |
lol. you are right. |
@sffc can you check development branch 0.53.13 [tasks.echo-cargo-stable]
toolchain = "stable"
script = '''
echo ${CARGO}
'''
[tasks.echo-cargo-nightly]
toolchain = "nightly"
script = '''
echo ${CARGO}
'''
[tasks.echo-cargo-all]
dependencies = ["echo-cargo-stable", "echo-cargo-nightly"] |
@sffc did you have a chance to verify the change? |
this is now released. @sffc feel free to reopen if needed and thanks for notifying me of this issue |
I updated |
thanks for checking |
Describe The Bug
The
toolchain
config option in Makefile.toml seems to only affect commands run directly withcargo
. However, if I invoke thecargo
tool from inside Duckscript, I would like the toolchain to also be applied.To Reproduce
Add the following rules to your Makefile.toml:
Actual behavior:
Expected behavior: both the first command and the second command should be using "cargo 1.62.0-nightly".
CC @Manishearth
The text was updated successfully, but these errors were encountered: