Skip to content

libfetchers: Remove badGitRefRegex and use libgit2 for reference validation#13729

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:issue-13325
Aug 11, 2025
Merged

libfetchers: Remove badGitRefRegex and use libgit2 for reference validation#13729
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:issue-13325

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Aug 10, 2025

Motivation

Fixes usage of # symbol in the reference name.
This also seems to identify several deficiencies in the libgit2 refname validation code wrt to DEL symbol and a singular @ symbol 1.

Context

Addresses #13325


Add 👍 to pull requests you find important.

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

@xokdvium xokdvium requested a review from roberth August 10, 2025 23:28
@xokdvium xokdvium requested a review from edolstra as a code owner August 10, 2025 23:28
@github-actions github-actions bot added with-tests Issues related to testing. PRs with tests have some priority fetching Networking with the outside (non-Nix) world, input locking labels Aug 10, 2025
@xokdvium xokdvium force-pushed the issue-13325 branch 2 times, most recently from 8ea39ab to 9960ac8 Compare August 10, 2025 23:33
…dation

Fixes usage of `#` symbol in the reference name.
This also seems to identify several deficiencies in the libgit2 refname
validation code wrt to DEL symbol and a singular `@` symbol [1].

[1]: https://git-scm.com/docs/git-check-ref-format#_description
@Mic92 Mic92 merged commit 867b69f into NixOS:master Aug 11, 2025
15 checks passed
@xokdvium xokdvium deleted the issue-13325 branch August 11, 2025 10:20
ysndr added a commit to flox/flox that referenced this pull request Nov 6, 2025
ysndr added a commit to flox/flox that referenced this pull request Nov 6, 2025
ysndr added a commit to flox/flox that referenced this pull request Nov 6, 2025
ysndr added a commit to flox/flox that referenced this pull request Nov 6, 2025
ysndr added a commit to flox/flox that referenced this pull request Nov 7, 2025
ysndr added a commit to flox/flox that referenced this pull request Nov 7, 2025
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 with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants