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

Preserve .git suffixes and casing in Git dependencies #2789

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

charliermarsh
Copy link
Member

Summary

I noticed in #2769 that I was now stripping .git suffixes from Git URLs after resolving to a precise commit. This PR cleans up the internal caching to use a better canonical representation: a RepositoryUrl along with a GitReference, instead of a GitUrl which can contain non-canonical data. This gives us both better fidelity (preserving the .git, along with any casing that the user provided when defining the URL) and is overall cleaner and more robust.

@charliermarsh charliermarsh added the bug Something isn't working label Apr 3, 2024
@charliermarsh charliermarsh marked this pull request as ready for review April 3, 2024 00:12
@charliermarsh charliermarsh changed the title Preserve .git suffixes in Git dependencies Preserve .git suffixes and casing in Git dependencies Apr 3, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) April 3, 2024 00:17
@charliermarsh charliermarsh merged commit 684f790 into main Apr 3, 2024
34 checks passed
@charliermarsh charliermarsh deleted the charlie/allowed-urls branch April 3, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant