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: make explicit Git URLs backward compatible #1826

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

Seb-MCaw
Copy link
Contributor

As of #1736, https://host/path.git URLs are recognised as Git URLs due to the .git suffix. Prior to this, however, recognition was inconsistent, so a URL produced by Alire.URI.Make_VCS_Explicit is not necessarily backward compatible. In particular, alr publish with alr 2.1 can produce a manifest which alr 2.0 considers invalid.

As mentioned here, this PR changes Alire.URI.Make_VCS_Explicit to always add a git+, even if there is a .git suffix, so that alr publish produces backward-compatible manifests.

PR creation checklist
  • A test is included, if required by the changes.

@Seb-MCaw Seb-MCaw marked this pull request as ready for review January 23, 2025 10:26
@mosteo mosteo merged commit 1c4d02a into alire-project:master Jan 23, 2025
25 checks passed
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