Skip to content

direnv scaffold: nix flake metadata .path is not realised on Nix 2.35 (install.sh, consumer ci.yml) #2039

Open

Description

@gerchowl

Problem

The container-free scaffold (#1871) gets the devkit source with
nix flake metadata --json github:vig-os/devkit/<tag> | jq -er .path and then copies $src/assets. On Nix 2.35 (cachix/install-nix-action currently installs 2.35.2), flake metadata reports the source store path without realising it. The copy then fails:

info: Fetching devkit 1.19.0-rc2 via nix...
cp: cannot stat '/nix/store/p0np527w6bvqx48b2k98cf2n9mviwync-source/assets': No such file or directory
error: Could not prepare the devkit assets from the flake source

This failed the Direnv Smoke lane of the 1.19.0-rc2 smoke test. It blocks 1.19.0.

Evidence (each against a fresh, empty --store)

  • Nix 2.35.3, flake metadata --json … | jq .path: path reported, nix path-info says path … is not valid, and there is no assets/.
  • Nix 2.34.8, same command: path realised, assets/ present.
  • Nix 2.35.3, flake prefetch --json … | jq .storePath: path realised, assets/ present.

Affected sites

  • install.sh (devkit_flake_assets fetch; also the --dry-run plan text that prints the command)
  • assets/workspace/.github/workflows/ci.yml (Scaffold Drift in direnv mode), plus any devkit-side copy or drift pin
  • tests/bats/install.bats stub for flake metadata

Fix

Use nix flake prefetch --json <ref> | jq -er .storePath, which realises the source on 2.34 and 2.35.

Activity

  1. added
    bug
    on Nov 4, 2026
  2. added a commit that references this issue on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions