Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: value is null while a list was expected in parser.nix:158 #111

Open
delneg opened this issue Mar 9, 2023 · 1 comment
Open

error: value is null while a list was expected in parser.nix:158 #111

delneg opened this issue Mar 9, 2023 · 1 comment

Comments

@delneg
Copy link

delneg commented Mar 9, 2023

error: value is null while a list was expected

       at /nix/store/y6p51jza33989fck64faj0wyk2b1cp15-source/builder/parser.nix:158:22:

          157|             } else {
          158|               path = elemAt m2 0;
             |                      ^
          159|             })

The contents of build file:

{ pkgs ? (
    let
      inherit (builtins) fetchTree fromJSON readFile;
      inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
    in
    import (fetchTree nixpkgs.locked) {
      overlays = [
        (import "${fetchTree gomod2nix.locked}/overlay.nix")
      ];
    }
  )
}:

pkgs.buildGoApplication {
  pname = "pkg";
  version = "0.1";
  pwd = builtins.path { path = ./..; };
  src = builtins.path { path = ../pkg; };
  modules = ../gomod2nix.toml;
}
@delneg
Copy link
Author

delneg commented Mar 10, 2023

Turns out, it's because of comments in the "replace" directive.

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

No branches or pull requests

1 participant