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(cli/WasmerEnv): strip registry. only if hostname starts with it #4992

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Aug 7, 2024

Currently, if a user has a non-canonical registry URL set as default url - for example, http://localhost:11/graphql - the CLI will fail as it tries to strip the registry. part of the URL, which might not be there. This small patch applies that change only in the case that the hostname actually starts with registry..

@xdoardo xdoardo requested a review from syrusakbary as a code owner August 7, 2024 12:42
@xdoardo xdoardo requested a review from theduke August 7, 2024 12:42
@theduke
Copy link
Contributor

theduke commented Aug 7, 2024

Is it worth adding a test that checks a few different variants to prevent regressions?

@xdoardo xdoardo merged commit efbbcad into main Aug 7, 2024
62 of 63 checks passed
@xdoardo xdoardo deleted the fix-wasmerenv-url branch August 7, 2024 18:51
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.

2 participants