Skip to content

Add a test case where fetchGit is failing to cache due to packed-refs #13456

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fzakaria
Copy link
Contributor

builtins.fetchGit is not using the cached Git directory if packed-references are used.
This is because the ref file for the fetchGit refs/heads/master is used to check the mtime for whether to cache or not.

Let's at least codify this failure in a test case.
For now the test case expects failure but we should change it once the issue is resolved.

Add 👍 to pull requests you find important.

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

builtins.fetchGit is not using the cached Git directory if
packed-references are used.

This is because the ref file for the fetchGit `refs/heads/master` is
used to check the mtime for whether to cache or not.

Let's at least codify this failure in a test case.
@fzakaria fzakaria requested a review from edolstra as a code owner July 11, 2025 22:51
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant