Skip to content

Git fetcher: Improve error message for untracked files#12870

Merged
mergify[bot] merged 3 commits intoNixOS:masterfrom
DeterminateSystems:improve-git-error
Apr 2, 2025
Merged

Git fetcher: Improve error message for untracked files#12870
mergify[bot] merged 3 commits intoNixOS:masterfrom
DeterminateSystems:improve-git-error

Conversation

@edolstra
Copy link
Copy Markdown
Member

@edolstra edolstra commented Apr 2, 2025

Motivation

It now says:

error: Path 'foo/bar' in the repository "/path/to/repo" is not tracked by Git.

       To make it visible to Nix, run:

       git -C "/path/to/repo" add "foo/bar"

Context


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Apr 2, 2025
@Mic92
Copy link
Copy Markdown
Member

Mic92 commented Apr 2, 2025

Nice one.

@Mic92
Copy link
Copy Markdown
Member

Mic92 commented Apr 2, 2025

@Mergifyio queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 2, 2025

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at 70dcd73

mergify bot added a commit that referenced this pull request Apr 2, 2025
@mergify mergify bot merged commit 70dcd73 into NixOS:master Apr 2, 2025
13 checks passed
@cole-h cole-h deleted the improve-git-error branch April 2, 2025 16:22
@roberth roberth added backport 2.27-maintenance backport 2.28-maintenance Automatically creates a PR against the branch labels Apr 2, 2025
edolstra added a commit that referenced this pull request Apr 2, 2025
…2870

Git fetcher: Improve error message for untracked files (backport #12870)
edolstra added a commit that referenced this pull request Apr 2, 2025
…2870

Git fetcher: Improve error message for untracked files (backport #12870)
@roberth
Copy link
Copy Markdown
Member

roberth commented Apr 9, 2025

Released in 2.28.0

@nixos-discourse
Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/determinate-nix-3-3-json-logging-a-new-experience-around-hash-mismatches-and-more/63142/4

@nixos-discourse
Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2025-04-02-nix-team-meeting-minutes-223/63694/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants