-
Notifications
You must be signed in to change notification settings - Fork 124
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
--skip-init-end-tasks
doesn't seem to work
#1108
Labels
Comments
instead of |
The same:
|
A hacky patch works:
|
hmmm... seems like a bug. i'll check it out. |
In case you miss it, I have uploaded a PR(#1109) to fix this issue. PTAL. |
thanks and sorry for the delay |
06393993
added a commit
to 06393993/vk-layer-for-rust
that referenced
this issue
Aug 15, 2024
... since cargo-make 0.37.14 fixes the sagiegurari/cargo-make#1108 issue.
06393993
added a commit
to google/vk-layer-for-rust
that referenced
this issue
Aug 16, 2024
... since cargo-make 0.37.14 fixes the sagiegurari/cargo-make#1108 issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe The Bug
With
tasks.init
defined, even if we callcargo make --skip-init-end-tasks empty
, the init task will be called.I am not sure if I am understanding the
--skip-init-end-tasks
argument incorrectly, or there is a bug. If it's a misunderstanding, I believe we should change the documentation for the--skip-init-end-tasks
argument: "If set, init and end tasks are skipped". If it's a bug, we need a fix.To Reproduce
On Linux with bash:
The actual output is:
I guess we are not supposed to see the "Running Task: init" log and the "init" echo?
Error Stack
N/A
Code Sample
This problem is important to me, as I plan to use the init task to add "-D warning" to the
RUSTFLAGS
environement variable for the CI environment. However, ff--skip-init-end-tasks
doesn't work, the init task will be run another time when a new cargo-make process is forked due totasks.<task_id>.run_task.fork
beingtrue
. As a result, 2 duplicate "-D warnings" will be added toRUSTFLAGS
, and cause recompilation.EDIT: move the
--skip-init-end-tasks
argument before the empty target in To Reproduce section, and update the output.The text was updated successfully, but these errors were encountered: