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

DENO_AUTH_TOKEN does not work, when it contains an extra \n at the end #25043

Closed
pihentagy opened this issue Aug 14, 2024 · 1 comment · Fixed by #25147
Closed

DENO_AUTH_TOKEN does not work, when it contains an extra \n at the end #25043

pihentagy opened this issue Aug 14, 2024 · 1 comment · Fixed by #25147
Labels
bug Something isn't working correctly cli related to cli/ dir

Comments

@pihentagy
Copy link

Version: Deno 1.45.5

  1. Create an otherwise valid bearer token, and set it as an env var, but with an extra newline at the end
    export DENO_AUTH_TOKENS=$'[email protected]\n'
    
  2. Do a deno cache --reload https://raw.githubusercontent.com/pihentagy/some-private-repo/main/main.ts
  3. Watch it fail with a misleading error:
    error: Module not found "https://raw.githubusercontent.com/pihentagy/some-private-repo/main/main.ts".
    

Ran into that issue when setting the env var via gitlab variable btw.

@pihentagy pihentagy changed the title DENO_AUTH_TOKEN does not work, when it contains an LF at the end DENO_AUTH_TOKEN does not work, when it contains an extra \n at the end Aug 14, 2024
@xiaoxiunique
Copy link

me too

@lucacasonato lucacasonato added bug Something isn't working correctly cli related to cli/ dir labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly cli related to cli/ dir
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants