Skip to content

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Nov 6, 2025

Motivation

This was already dropped in inputFromURL(), but not in inputFromAttrs(). Now it's done in fixGitURL(), which is used by both.

In principle, git+ shouldn't be used in the url attribute, since we already know that it's a Git URL. But since it currently works, we don't want to break it.

Fixes #14429.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This was already dropped in `inputFromURL()`, but not in
`inputFromAttrs()`. Now it's done in `fixGitURL()`, which is used by
both.

In principle, `git+` shouldn't be used in the `url` attribute, since
we already know that it's a Git URL. But since it currently works, we
don't want to break it.

Fixes #14429.
@edolstra edolstra requested a review from xokdvium November 6, 2025 15:39
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Nov 6, 2025
Previous commit fixed an issue. This commit adds a test
to validate that.
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Added a unit test for Input::fromAttrs case as well.

@edolstra edolstra added this pull request to the merge queue Nov 10, 2025
Merged via the queue into master with commit 709a73e Nov 10, 2025
20 checks passed
@edolstra edolstra deleted the fix-14429 branch November 10, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fetchGit errors contain an extra git+ prefix

2 participants