Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/nix/nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (p *flakeLockParser) Parse(filename string, content []byte) (*core.Result,

for name, node := range lock.Nodes {
// Skip root node
if name == "root" {
if name == lock.Root {
continue
}

Expand Down
1 change: 1 addition & 0 deletions manifests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func TestParseAllEcosystems(t *testing.T) {
{"helm Chart.lock", "testdata/helm/Chart.lock", "helm", Lockfile},
{"helm requirements.yaml", "testdata/helm/legacy/requirements.yaml", "helm", Manifest},
{"helm requirements.lock", "testdata/helm/legacy/requirements.lock", "helm", Lockfile},
{"nix flake.lock", "testdata/nix/flake.lock", "nix", Lockfile},
{"vagrant Vagrantfile", "testdata/vagrant/Vagrantfile", "vagrant", Manifest},
}

Expand Down
4 changes: 2 additions & 2 deletions testdata/nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.