Skip to content

Comments

Fix to lazily configure the warg client#110

Merged
calvinrp merged 1 commit intobytecodealliance:mainfrom
calvinrp:lazily-create-warg-client
May 13, 2024
Merged

Fix to lazily configure the warg client#110
calvinrp merged 1 commit intobytecodealliance:mainfrom
calvinrp:lazily-create-warg-client

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
@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