-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
So I tried to reason about those warnings:
trace: warning: getExe: Package "conform-0.1.0-alpha.27" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
trace: warning: getExe: Package "treefmt-0.5.0" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
I did not have ANY reference to such nixpkgs definition in my flake code, then looking around lib.getExe usages only 2 candidates are inside
std/src/data/configs/lefthook.nix
Line 12 in f8f6f70
| ${lib.getExe nixpkgs.conform} enforce --commit-msg-file {1}''; |
then I have noticed flake.nix and flake.lock lying around in src/data/ referencing nixpkgs commit holding the faulty treefmt-0.5.0
I have no idea how and why this happens, but seems like src/data is loading and using packages from nixpkgs dated at 2023-09 with no way to modify this behavior downstream.
Metadata
Metadata
Assignees
Labels
No labels