Skip to content

Conversation

@MattSturgeon
Copy link
Contributor

This seems to fix #74, by still using fetchGit even when the git repo is shallow.

I suspect this means issues similar to #74 can still occur when the flake is not a git repo, perhaps due to an underlying issue with "${src}" not correctly copying to store in some scenarios when nix-instantiate --eval is used?

MattSturgeon added a commit to MattSturgeon/nixvim that referenced this pull request Jul 12, 2025
Pin flake-compat to NixOS/flake-compat#75
which fixes NixOS/flake-compat#74

If the flake is a shallow git repo, such as when fetched in CI,
flake-compat was failing to run in nix-instantiate.

Flake lock file updates:

• Updated input 'flake-compat':
    'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
  → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12)
khaneliman pushed a commit to khaneliman/nixvim that referenced this pull request Jul 12, 2025
Pin flake-compat to NixOS/flake-compat#75
which fixes NixOS/flake-compat#74

If the flake is a shallow git repo, such as when fetched in CI,
flake-compat was failing to run in nix-instantiate.

Flake lock file updates:

• Updated input 'flake-compat':
    'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
  → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12)
khaneliman pushed a commit to khaneliman/nixvim that referenced this pull request Jul 12, 2025
Pin flake-compat to edolstra/flake-compat#75
which fixes edolstra/flake-compat#74

If the flake is a shallow git repo, such as when fetched in CI,
flake-compat was failing to run in nix-instantiate.

Flake lock file updates:

• Updated input 'flake-compat':
    'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
  → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12)
github-merge-queue bot pushed a commit to nix-community/nixvim that referenced this pull request Jul 12, 2025
Pin flake-compat to edolstra/flake-compat#75
which fixes edolstra/flake-compat#74

If the flake is a shallow git repo, such as when fetched in CI,
flake-compat was failing to run in nix-instantiate.

Flake lock file updates:

• Updated input 'flake-compat':
    'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
  → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12)
khaneliman pushed a commit to khaneliman/nixvim that referenced this pull request Jul 12, 2025
Pin flake-compat to NixOS/flake-compat#75
which fixes NixOS/flake-compat#74

If the flake is a shallow git repo, such as when fetched in CI,
flake-compat was failing to run in nix-instantiate.

Flake lock file updates:

• Updated input 'flake-compat':
    'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
  → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12)
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.

Shallow clones cannot be imported

1 participant