Skip to content

Commit aa27889

Browse files
authored
Merge pull request #20868 from Homebrew/go-dumper-skip-command-line-arguments
bundle/go_dumper: skip dummy command-line-arguments package
2 parents 82266fb + a8c526f commit aa27889

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Library/Homebrew/bundle/go_dumper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ def self.packages
3737
# Extract the package path (second field after splitting by tab)
3838
# The line format is: "\tpath\tgithub.com/user/repo"
3939
parts = path_line.split("\t")
40-
parts[2]&.strip if parts.length >= 3
40+
path = parts[2]&.strip if parts.length >= 3
41+
42+
# `command-line-arguments` is a dummy package name for binaries built
43+
# from a list of source files instead of a specific package name.
44+
# https://github.com/golang/go/issues/36043
45+
next if path == "command-line-arguments"
46+
47+
path
4148
end.compact.uniq
4249
else
4350
[]

0 commit comments

Comments
 (0)