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

Misc no-op and/or error handling for the --test command line flag #3586

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Mar 24, 2025

This adds support for the --test flag to a bunch of sub-commands, which wouldn't benefit from it at this point in time, but we want to still handle it there before we make the flag a part of SharedOptions (which in turn, will be necessary to properly support it in IDEs).

This means

  • the export sub-command will fail when --test is passed with a meaningful message.
    • I suspect in most cases, users would just want the test scope to be also exported, which it will without the flag already.
    • there could be a use case where --test would merge the test scope to the main, and be exported as such. we won't support that for now (and I dunno if ever, depends on demand I guess)
  • dependency update and fmt will just ignore the option, but raise a warning that it doesn't change anything.

@Gedochao Gedochao changed the title Fail export with a meaningful message if --test is passed Fail export with a meaningful message if --test is passed Mar 24, 2025
@Gedochao Gedochao changed the title Fail export with a meaningful message if --test is passed Fail export with a meaningful message if --test is passed Mar 24, 2025
@Gedochao Gedochao force-pushed the feature/noop-test-flag branch 2 times, most recently from 456fb37 to 4475674 Compare March 26, 2025 12:52
@Gedochao Gedochao changed the title Fail export with a meaningful message if --test is passed Misc no-op and/or error handling for the --test command line flag Mar 26, 2025
@Gedochao Gedochao force-pushed the feature/noop-test-flag branch from 4475674 to e67f61f Compare April 2, 2025 07:46
@Gedochao Gedochao force-pushed the feature/noop-test-flag branch from e67f61f to 3aa4b87 Compare April 3, 2025 10:58
@Gedochao Gedochao marked this pull request as ready for review April 4, 2025 10:57
@Gedochao Gedochao requested review from tgodzik and removed request for tgodzik April 4, 2025 10:57
@Gedochao Gedochao merged commit 9c8ce2c into VirtusLab:main Apr 8, 2025
54 checks passed
@Gedochao Gedochao deleted the feature/noop-test-flag branch April 8, 2025 12:50
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.

2 participants