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

Fix to lazily configure the warg client #110

Merged
merged 1 commit into from
May 13, 2024

Conversation

calvinrp
Copy link
Collaborator

Fix for #109

Calling FileSystemClient::new_with_default_config() was triggering a call to get the auth_token for the globally configured Warg registry: https://github.com/bytecodealliance/registry/blob/main/crates/client/src/lib.rs#L1404

If only local file paths are used, this is not needed and shouldn't happen.

@FrankReh
Copy link

I can confirm it fixes the problem I ran into. Thank you!

@macovedj
Copy link
Collaborator

Probably worth investigating if other wac commands could use a similar change

@calvinrp calvinrp merged commit 8000e1a into bytecodealliance:main May 13, 2024
7 checks passed
@calvinrp calvinrp deleted the lazily-create-warg-client branch May 13, 2024 16:00
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.

3 participants