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: trailing slash issue when finding auth in upmconfig #94

Merged
merged 3 commits into from
Jan 2, 2024
Merged

fix: trailing slash issue when finding auth in upmconfig #94

merged 3 commits into from
Jan 2, 2024

Conversation

ComradeVanti
Copy link
Collaborator

See #29

This PR ensures that all registry-urls inside the app-domain have no trailing slash. They are also saved like this to the .upmconfig.toml.

When querying for a registry-auth from the upmconfig, the program will now search for the registry-url both with and without the trailing slash to find it more reliably.

Added tests to ensure this behavior.

Registry urls now never have a trailing slash. This has the effect that they will also always be saved to upmconfig without trailing slash.
Search npm-auth for registry using both the regular registry url as well as with a trailing slash.
@ComradeVanti ComradeVanti changed the title fix: trailing shlash issue when finding auth in upmconfig fix: trailing slash issue when finding auth in upmconfig Dec 31, 2023
src/cmd-login.ts Outdated Show resolved Hide resolved
@favoyang favoyang merged commit 162f5e8 into openupm:master Jan 2, 2024
2 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 2, 2024
## [1.19.5](1.19.4...1.19.5) (2024-01-02)

### Bug Fixes

* trailing slash issue when finding auth in upmconfig ([#94](#94)) (close [#29](#29)) ([162f5e8](162f5e8))
@ComradeVanti ComradeVanti deleted the fix-#29 branch January 2, 2024 14:10
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.

None yet

2 participants