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

Move WasmerConfig out of the registry_api crate and introduce a logout subcommand #4955

Merged
merged 10 commits into from
Jul 29, 2024

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Jul 24, 2024

(Closes #4951 and - hopefully - others login-related issues).

This PR does two things:

  1. Moves the CLI crate a bit further away from the double registry dependency (backend-api vs registry-api). In order to achieve this, it moves the WasmerConfig type out of the registry-api crate and into the cli crate. In turn, this allows to merge the ApiOpts and WasmerEnv types. Rationale for doing this now: If you login, then attempt to login again it panics #4918 panics due to the runtime-inside-a-runtime quirk in turn due to the use of registry-api.
  2. Adds a logout command.

This PR is preventive, and should initially be used just to test the behaviour of the CLI after the induced changes.
In order to be sure that the issues #4918 and #4918 are solved by this PR, a windows-native test run must be executed.

@xdoardo xdoardo requested a review from theduke July 24, 2024 17:24
Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

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

LGTM

@xdoardo xdoardo marked this pull request as ready for review July 26, 2024 07:52
@xdoardo xdoardo requested a review from syrusakbary as a code owner July 26, 2024 07:52
@xdoardo xdoardo changed the title Move WasmerConfig out of the registry_api create and introduce a logout subcommand Move WasmerConfig out of the registry_api crate and introduce a logout subcommand Jul 26, 2024
@xdoardo xdoardo merged commit 531d30d into main Jul 29, 2024
61 of 63 checks passed
@xdoardo xdoardo deleted the cli-auth branch July 29, 2024 11:49
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

Successfully merging this pull request may close these issues.

CLI: Create logout command
2 participants