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

Prevent null exception, throw exception on secret key / password missing #1898

Merged
merged 9 commits into from Mar 9, 2023

Conversation

MaciejG604
Copy link
Contributor

@MaciejG604 MaciejG604 commented Mar 2, 2023

When using scala-cli publish with --secret-key but no value for --secret-key-password an ambiguous error is presented to the user due to null being referenced (line 888 in old version). This should fix the exception and also warn users if one of the values is missing.

Also fixes #1899
Follow-up to #1432

@MaciejG604 MaciejG604 marked this pull request as ready for review March 2, 2023 14:21
@MaciejG604 MaciejG604 force-pushed the publish-null-exception branch 2 times, most recently from d77c80a to a809a73 Compare March 8, 2023 09:55
@MaciejG604
Copy link
Contributor Author

The mechanism of PGP singing files with BouncyCastle using no secret key password is unstable with native launcher. I've excluded the test for it from native launcher tests, but it should be fixed.

I've created a follow-up issue: #1913

Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

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

LGTM

@MaciejG604 MaciejG604 merged commit d5f89a9 into VirtusLab:main Mar 9, 2023
37 checks passed
@Gedochao Gedochao added bug Something isn't working publish command UX labels Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working publish command UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading output of publish setup when pgp keys stored in config
4 participants