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

fix(cmd/up): --help takes precedence over --build #2324

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

endocrimes
Copy link
Member

We shouldn't build applications when the user is requesting help.

I also did a quick local test to make sure a missing component binary doesn't print any new errors/cause issues when --helping - and that the re-ordering is safe (spin up --build still works) although i assume our integration tests already somewhat cover that path.

fixes #2323

We shouldn't build applications when the user is requesting help.

Signed-off-by: Danielle Lancashire <[email protected]>
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

As UpCommand has an explicit help field, have we considered annotating that with suitable "not at the same time as" attributes? That might make it clearer to the user that --build --help is not a valid combination, rather than silently dropping the --build bit...?

tests/integration.rs Show resolved Hide resolved
@fibonacci1729 fibonacci1729 merged commit 3ee465e into fermyon:main Mar 6, 2024
10 checks passed
@endocrimes endocrimes deleted the dani/fix-up-help branch March 6, 2024 18:38
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.

spin up --build --help incorrectly builds the application
4 participants