Skip to content

fix: make explicit Git URLs backward compatible#1826

Merged
mosteo merged 1 commit into
alire-project:masterfrom
Seb-MCaw:fix/more-explicit-git-urls
Jan 23, 2025
Merged

fix: make explicit Git URLs backward compatible#1826
mosteo merged 1 commit into
alire-project:masterfrom
Seb-MCaw:fix/more-explicit-git-urls

Conversation

@Seb-MCaw

Copy link
Copy Markdown
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
@Seb-MCaw Seb-MCaw deleted the fix/more-explicit-git-urls branch September 8, 2025 08:30
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