Skip to content

Commit 6686f41

Browse files
committed
module: add COM0 and LPT0 to badWindowsNames
They have been added to the list of file names that are disallowed on Windows that's referenced in the comment to badWindowsNames, so add them to badWindowsNames. For golang/go#67238 For golang/go#66625 Change-Id: I82e5d70f33330f746783fd22090a3ebaf9408dfc Reviewed-on: https://go-review.googlesource.com/c/mod/+/583836 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Sam Thanawalla <[email protected]>
1 parent aa51b25 commit 6686f41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/module.go

+2
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ var badWindowsNames = []string{
506506
"PRN",
507507
"AUX",
508508
"NUL",
509+
"COM0",
509510
"COM1",
510511
"COM2",
511512
"COM3",
@@ -515,6 +516,7 @@ var badWindowsNames = []string{
515516
"COM7",
516517
"COM8",
517518
"COM9",
519+
"LPT0",
518520
"LPT1",
519521
"LPT2",
520522
"LPT3",

0 commit comments

Comments
 (0)