Skip to content

Fix ensure authenticated API is only requested when no_upload flag is not present#2047

Merged
szokeasaurusrex merged 2 commits intomasterfrom
fix/upload-proguard-no-upload
Apr 30, 2024
Merged

Fix ensure authenticated API is only requested when no_upload flag is not present#2047
szokeasaurusrex merged 2 commits intomasterfrom
fix/upload-proguard-no-upload

Conversation

@markushi
Copy link
Copy Markdown
Member

@markushi markushi commented Apr 30, 2024

Fixes #2046

The upload-proguard command has a --no-upload flag for dry runs. We fetch an authenticated API ahead of time, causing this command to fail, even when --no-upload is present.

I simply re-ordered the logic as a quick fix. Maybe someone more fluent in rust can write a suitable test for this.

Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Looks good! Adding a test might be nice, but probably not required urgently

Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Took me a moment to understand what you did with the test code, but I think this looks good!

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.

sentry-cli exits with an error, even when --no-upload flag is provided

2 participants