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

cli: fix incorrect subcommand being called. #5344

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Conversation

sipsma
Copy link
Contributor

@sipsma sipsma commented Jun 20, 2023

We were mutating a common slice across different call branches, which resulted in different call branches overwriting objects in the array underlying the slice and the wrong command sometimes being used.


Found by @helderco, thanks!

@sipsma sipsma requested a review from helderco June 20, 2023 19:33
sipsma and others added 2 commits June 21, 2023 11:04
We were mutating a common slice across different call branches, which
resulted in different call branches overwriting objects in the array
underlying the slice and the wrong command sometimes being used.

Signed-off-by: Erik Sipsma <erik@dagger.io>
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
Copy link
Contributor

@helderco helderco left a comment

Choose a reason for hiding this comment

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

Thanks! I rebased and added the python test case.

@helderco helderco merged commit 68cfddb into dagger:main Jun 21, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants