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

SBT_PGP_USE_GPG is a system property, not an environment variable #169

Open
smarter opened this issue Sep 20, 2019 · 0 comments
Open

SBT_PGP_USE_GPG is a system property, not an environment variable #169

smarter opened this issue Sep 20, 2019 · 0 comments

Comments

@smarter
Copy link

smarter commented Sep 20, 2019

The README says:

Or by setting SBT_PGP_USE_GPG environment variable to 0.

This is wrong on two counts:

  • sys.props.get("SBT_PGP_USE_GPG") match {
    case Some(_) => java.lang.Boolean.getBoolean("SBT_PGP_USE_GPG")
    case None => true
    }
  • While setting the system property to 0 would indeed result in java.lang.Boolean.getBoolean("SBT_PGP_USE_GPG") returning false, the same would happen if it was set to 1. Boolean system properties should be set to either "false" or "true" to be properly parsed by java.lang.Boolean.getBoolean.
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

No branches or pull requests

1 participant