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(cli): Fix global flag parsing interference #235

Merged
merged 2 commits into from
May 17, 2021
Merged

Conversation

BYK
Copy link
Member

@BYK BYK commented May 16, 2021

This fixes the release failures such as https://github.com/getsentry/sentry/runs/2591288014?check_suite_focus=true.
The culprit is #224 where we switched the global --no-input and
--dry-run flags from boolean to string args.
This now causes craft prepare --no-input "21.5.0" to be interpreted
as craft prepare --no-input=21.5.0.

This patch fixes the issue.

This fixes the release failures such as https://github.com/getsentry/sentry/runs/2591288014?check_suite_focus=true.
The culprit is #224 where we switched the global `--no-input` and
`--dry-run` flags from boolean to string args.
This now causes  `craft prepare --no-input "21.5.0"` to be interpreted
as `craft prepare --no-input=21.5.0`.

This patch fixes the issue.
BYK added a commit to getsentry/action-prepare-release that referenced this pull request May 17, 2021
Provides a temporary fix until getsentry/craft#235 lands. It is also no longer needed.
@BYK BYK merged commit 68eb04e into master May 17, 2021
@BYK BYK deleted the byk/fix/global-args branch May 17, 2021 07:01
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.

3 participants