Skip to content

v1.7 doesn't resolve relative non-flake inputs to a path on the filesystem #2002

Closed
@sandydoo

Description

@sandydoo

Nix 2.30 copies all git inputs to the store and then fails to resolve the paths. 2.24 would keep around the outPath and would resolve the root input to the local filesystem.

Hey @sandydoo is that the case of this issue as well?

I'm using it in my project like this:

inputs:
  nixpkgs-unstable:
    url: github:NixOS/nixpkgs/nixpkgs-unstable
  nixpkgs:
    url: github:cachix/devenv-nixpkgs/rolling
  root:
    url: git+file://../
    flake: false
imports:
  - root/common
  - root/common/python.nix

After 1.7, my CI stopped working. It was working fine with 1.6. Is there any workaround for this use case?

Originally posted by @emdneto in #1990

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnixAn upstream issue with Nix

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions