Skip to content

Commit 2f9c980

Browse files
committed
handle multiple pkgs in nix < 2.17
1 parent 3df5ec8 commit 2f9c980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/nix/nixprofile/profile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ func parseNixProfileListItem(line string) (*NixProfileListItem, error) {
194194
if !scanner.Scan() {
195195
return nil, redact.Errorf("error parsing \"nix profile list\" output: line is missing nixStorePaths: %s", line)
196196
}
197-
nixStorePath := scanner.Text()
197+
nixStorePaths := strings.Fields(scanner.Text())
198198

199199
return &NixProfileListItem{
200200
index: index,
201201
unlockedReference: unlockedReference,
202202
lockedReference: lockedReference,
203-
nixStorePaths: []string{nixStorePath},
203+
nixStorePaths: nixStorePaths,
204204
}, nil
205205
}
206206

0 commit comments

Comments
 (0)