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

Stack overflow when extending default task #965

Open
ladvoc opened this issue Oct 16, 2023 · 1 comment
Open

Stack overflow when extending default task #965

ladvoc opened this issue Oct 16, 2023 · 1 comment
Assignees

Comments

@ladvoc
Copy link

ladvoc commented Oct 16, 2023

Describe The Bug

Before I understood how the configuration works, I mistakenly extended the default build task as shown below:

[tasks.build]
description = "Build without default features"
extend = "build"
args = ["build", "--no-default-features"]

When invoked, this results in a stack overflow.

To Reproduce

  1. Setup the build task (or any core task) as shown above
  2. Invoke that task from the command line

Error Stack

$ cargo make build
[cargo-make] INFO - cargo make 0.37.2
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Project: my-crate
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: build
[cargo-make] INFO - Profile: development

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)
@sagiegurari
Copy link
Owner

thanks for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants