-
Notifications
You must be signed in to change notification settings - Fork 1
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: "data did not match any variant of untagged enum PackageMaintainers at line 2361 column 7" #21
Comments
@usmcamp0811 thanks for reporting the issue! This step is fetching the metadata for the packages in your store, which explains why I wasn't able to reproduce locally.
You can then call
If you could do the following two commands and send me the derivation that is located at line |
I tried running those commands and got: ╭─mcamp on butler in /config on nixos🔥
╰─🚧 nix-env -q -a --meta --json '.*' > packages-metadata.json
╭─mcamp on butler in /config on nixos🔥
╰─🚧 nix2sbom -f .# --metadata-path packages-metadata.json
[00:00:00.000] (7fc99ef0f7c0) INFO Getting the derivations from file .#.
Error: Custom { kind: UnexpectedEof, error: Error("EOF while parsing a value", line: 1, column: 0) }
╭─mcamp on butler in /config on nixos🔥
╰─🚧 nix2sbom -f .# --metadata-path /config/packages-metadata.json
[00:00:00.000] (7f40b6af07c0) INFO Getting the derivations from file .#.
Error: Custom { kind: UnexpectedEof, error: Error("EOF while parsing a value", line: 1, column: 0) }
╭─mcamp on butler in /config on nixos🔥
╰─🚧 nix2sbom -f .#butler --metadata-path /config/packages-metadata.json
[00:00:00.000] (7fec1f50b7c0) INFO Getting the derivations from file .#butler.
Error: Custom { kind: UnexpectedEof, error: Error("EOF while parsing a value", line: 1, column: 0) } I dunno about uploading that if you mean whats at line "nixos.LAStools": {
"meta": {
"available": false,
"broken": false,
"description": "Software for rapid LiDAR processing",
"homepage": "http://lastools.org/",
"insecure": false,
"license": {
"deprecated": false,
"free": false,
"fullName": "Unfree",
"redistributable": false,
"shortName": "unfree"
},
"maintainers": [
{
"github": "StephenWithPH",
"githubId": 2990492,
"name": "StephenWithPH"
}
],
"name": "LAStools-2.0.2",
"outputsToInstall": [
"out"
],
"platforms": [
"i686-cygwin",
"x86_64-cygwin",
"x86_64-darwin",
"i686-darwin",
"aarch64-darwin",
"armv7a-darwin",
"i686-freebsd13",
"x86_64-freebsd13",
"x86_64-solaris",
"aarch64-linux",
"armv5tel-linux",
"armv6l-linux",
"armv7a-linux",
"armv7l-linux",
"i686-linux",
"loongarch64-linux",
"m68k-linux",
"microblaze-linux",
"microblazeel-linux",
"mipsel-linux",
"mips64el-linux",
"powerpc64-linux",
"powerpc64le-linux",
"riscv32-linux",
"riscv64-linux",
"s390-linux",
"s390x-linux",
"x86_64-linux",
"aarch64-netbsd",
"armv6l-netbsd",
"armv7a-netbsd",
"armv7l-netbsd",
"i686-netbsd",
"m68k-netbsd",
"mipsel-netbsd",
"powerpc-netbsd",
"riscv32-netbsd",
"riscv64-netbsd",
"x86_64-netbsd",
"i686-openbsd",
"x86_64-openbsd",
"x86_64-redox"
],
"position": "/nix/store/mirpm2hcfllj98r3rhq9y72r3gj5khnm-nixos-23.05.3071.c540061ac8d7/nixos/pkgs/development/libraries/LAStools/default.nix:27",
"unfree": true,
"unsupported": false
},
"name": "LAStools-2.0.2",
"outputName": "out",
"outputs": {
"out": null
},
"pname": "LAStools",
"system": "x86_64-linux",
"version": "2.0.2"
}, |
@usmcamp0811 thanks for the snippet! I was able to capture the bug in a unit test and provide a fix in #24. I'm not sure why you were getting the |
@usmcamp0811 please give it another shot with version |
@usmcamp0811 I'm going to close this one, let me know if you run into the issue again. |
Saw your flake on FlakeHub and thought I would give it a go. I added it to my config and tried running:
and I got the following error:
I tried some more things and got the same or similar looking errors:
campground-nvim
andvault-secrets
are flakes of mine, thenvim
one is based onnixvim
and the other is a simple shell script flake I was playing with the other night.I very well might be doing something dumb, because I only marginally know what I'm doing. So if I am way out in left field let me know..
The text was updated successfully, but these errors were encountered: