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

Unable to provide alternative hexpm credentials for gleam publish #4318

Open
hayleigh-dot-dev opened this issue Mar 9, 2025 · 1 comment
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium

Comments

@hayleigh-dot-dev
Copy link
Member

If you have already authenticated and saved a local token for Gleam to interact with the hex api, it is impossible to provide alternative user/pass credentials when publishing a package.

Attempting to publish a package by setting HEXPM_USER and HEXPM_PASS variables results in the following error:

error: Failed to decrypt data

A problem was encountered decrypting data.
The error from the encryption library was:

    Decryption failed

Steps to reproduce:

  • Generate a local hex token for a hexpm account using gleam hex authenticate
  • Run HEXPM_USER=a_different_account HEXPM_PASS=****** gleam publish
  • Observe the error above.
@lpil
Copy link
Member

lpil commented Mar 10, 2025

Thank you

@lpil lpil added help wanted Contributions encouraged good first issue Good for newcomers priority:medium labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

2 participants