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 Publish Package with WASMER_TOKEN env var #3993

Closed
ayys opened this issue Jun 13, 2023 · 0 comments · Fixed by #4013
Closed

Unable to Publish Package with WASMER_TOKEN env var #3993

ayys opened this issue Jun 13, 2023 · 0 comments · Fixed by #4013
Assignees
Labels
priority-high High priority issue
Milestone

Comments

@ayys
Copy link
Member

ayys commented Jun 13, 2023

Describe the bug

I encountered an issue while trying to publish a package to the Wasmer Registry using the wasmer publish command from the CI.

wasmer 4.0.0-beta.2 (18ab43b 2023-06-09)
binary: wasmer-cli
commit-hash: 18ab43bc60d4427676fb2adcee78ef016321b829
commit-date: 2023-06-09
host: aarch64-apple-darwin
compiler: singlepass,cranelift
rustc 1.70.0 (90c541806 2023-05-31)
binary: rustc
commit-hash: 90c541806f23a127002de5b4038be731ba1458ca
commit-date: 2023-05-31
host: aarch64-apple-darwin
release: 1.70.0
LLVM version: 16.0.2

Steps to reproduce

  1. Set the registry URL
$ wasmer config set registry.url wasmer.io
  1. Export the Wasmer token
$ export WASMER_TOKEN="wap_..."
  1. Publish the package
$ wasmer publish
error: cannot publish package: not logged into registry "https://registry.wasmer.io/graphql"
  1. Set the registry URL again
$ wasmer config set registry.url wasmer.io
Successfully logged into registry "https://registry.wasmer.io/graphql" as user "..."
  1. Retry publishing the package
$ wasmer publish
error: cannot publish package: not logged into registry "https://registry.wasmer.io/graphql"

Expected behavior

I expected the package to publish both times, but it didn't.

Actual behavior

I got an error that I am not logged in to the registry, even though I am.

Additional context

I noticed that WASMER_TOKEN env var does not get added to the global wasmer.toml config file. This could be why I am getting this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-high High priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants