I get the following error:

Reproduction
Directory Structure
- something.nix
- flake.nix
- subdir
Files
something.nix:
flake.nix:
{
outputs = _: {
something = import ./something.nix;
};
}
subdir/flake.nix:
{
outputs = _: {
something = import ../something.nix;
};
}
Steps
via repl:
cd subdir
nix repl
:lf .
outputs.something
Accessing outputs.something with nix-inspect -p subdir results in the above mentioned error. When accessing it via the root flake it works.
While building the reproduction I've noticed that the error also occurs when using nix repl but only if the root directory is not a git repository.
So maybe my use-case is also a bit strange: I have a "public facing" flake and an "internal" flake. Both import the same files/functions but pass different arguments. The "internal" flake is in a sub directory, the "public" flake at the root.
I get the following error:

Reproduction
Directory Structure
Files
something.nix:flake.nix:subdir/flake.nix:Steps
via repl:
Accessing
outputs.somethingwithnix-inspect -p subdirresults in the above mentioned error. When accessing it via the root flake it works.While building the reproduction I've noticed that the error also occurs when using
nix replbut only if the root directory is not a git repository.So maybe my use-case is also a bit strange: I have a "public facing" flake and an "internal" flake. Both import the same files/functions but pass different arguments. The "internal" flake is in a sub directory, the "public" flake at the root.