Skip to content

Conversation

@Malix-Labs
Copy link
Contributor

@Malix-Labs Malix-Labs commented Oct 9, 2025

This one especially is to review because I am not sure of the bare git flake input or if there would be a dedicated type / preferable tarball for this repository

I also tried running nix run github:nixos/nixos-search#flake-info but it is repetitively failing with "Error: Getting flake info caused an error: missing field 'path' at line 1 column *" even for the git entries that have already been featured

[malix@nixos:~]$ nix run github:nixos/nixos-search#flake-info -- --json flake git+https://git.clan.lol/clan/clan-core
do you want to allow configuration setting 'extra-substituters' to be set to 'https://nixos-search.cachix.org' (y/N)? n
do you want to permanently mark this value as untrusted (y/N)? n
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
Pass '--accept-flake-config' to trust it
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'nixos-search.cachix.org-1:1HV3YF8az4fywnH+pAd+CXFEdpTXtv9WpoivPi+H70o=' (y/N)? n
do you want to permanently mark this value as untrusted (y/N)? n
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
Pass '--accept-flake-config' to trust it
Error: Getting flake info caused an error: missing field `path` at line 1 column 4584

@raboof
Copy link
Member

raboof commented Oct 10, 2025

strange, I get a different error:

$ nix run github:nixos/nixos-search#flake-info -- --json flake git+https://git.clan.lol/clan/clan-core
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
Pass '--accept-flake-config' to trust it
[2025-10-10T07:56:49Z ERROR command_run] command 'nix eval --json --no-allow-import-from-derivation --no-write-lock-file -f '/nix/store/qrg0ysx638fyckd700hknk3kzkshpl2f-flake-info/assets/commands/flake_info.nix' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz --override-flake input-flake 'git+https://git.clan.lol/clan/clan-core' --argstr flake 'git+https://git.clan.lol/clan/clan-core' all' failed: exit status: 1
    stdout:
    
    stderr:
    unpacking 'https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz' into the Git cache...
    unpacking 'https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre862603.08b8f92ac635/nixexprs.tar.xz' into the Git cache...
    unpacking 'github:numtide/treefmt-nix/5eda4ee8121f97b218f7cc73f5172098d458f1d1?narHash=sha256-ySNJ008muQAds2JemiyrWYbwbG%2BV7S5wg3ZVKGHSFu8%3D' into the Git cache...
    error:
           … while calling the 'attrValues' builtin
             at /nix/store/qrg0ysx638fyckd700hknk3kzkshpl2f-flake-info/assets/commands/flake_info.nix:153:14:
              152|   legacyPackages = lib.attrValues (collectSystems legacyPackages');
              153|   packages = lib.attrValues (collectSystems packages');
                 |              ^
              154|   apps = lib.attrValues (collectSystems apps');
    
           … while evaluating a branch condition
             at /nix/store/a412rr7xw2j7vz3valksjhibad8jg4xk-source/lib/lists.nix:142:18:
              141|       len = length list;
              142|       fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
                 |                  ^
              143|     in
    
           … while evaluating definitions from `/nix/store/dw345ma5l7pp3zvyc06i4239j8cfi4s9-source/modules/transposition.nix':
    
           … while evaluating definitions from `/nix/store/4jkn5ii7n41517z8dr2p95qx7x1s62dr-source/pkgs/clan-vm-manager/flake-module.nix, via option perSystem':
    
           (stack trace truncated; use '--show-trace' to show the full, detailed trace)
    
           error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "wrapGAppsHook" at /nix/store/4jkn5ii7n41517z8dr2p95qx7x1s62dr-source/pkgs/clan-vm-manager/default.nix:20, did you mean "wrapGAppsHook3" or "wrapGAppsHook4"?'
    
Error: Getting flake info caused an error: Failed to gather information about git+https://git.clan.lol/clan/clan-core

Caused by:
    command 'nix eval --json --no-allow-import-from-derivation --no-write-lock-file -f '/nix/store/qrg0ysx638fyckd700hknk3kzkshpl2f-flake-info/assets/commands/flake_info.nix' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz --override-flake input-flake 'git+https://git.clan.lol/clan/clan-core' --argstr flake 'git+https://git.clan.lol/clan/clan-core' all' failed: exit status: 1

not sure what's going on there

@Malix-Labs
Copy link
Contributor Author

not sure what's going on there

Not sure either

Is it doing the same with other options?

Git ones and GitHub ones as well?

@raboof
Copy link
Member

raboof commented Oct 10, 2025

Is it doing the same with other options?

no, for example nix run github:nixos/nixos-search#flake-info -- --json flake git+https://codeberg.org/wolfangaukang/python-trovo?ref=main or nix run github:nixos/nixos-search#flake-info -- --json flake github:anpandey/numen-nix work fine.

@Malix-Labs
Copy link
Contributor Author

not for me, weird

[malix@nixos:~]$ nix run github:nixos/nixos-search#flake-info -- --json flake git+https://codeberg.org/wolfangaukang/python-trovo?ref=main
warning: ignoring untrusted substituter 'https://nixos-search.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
Error: Getting flake info caused an error: missing field `path` at line 1 column 3654

@raboof
Copy link
Member

raboof commented Oct 10, 2025

Weird. Would be nice if we stored whatever file is missing field path at line 1 column 3654...

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.

2 participants