Skip to content

Commit

Permalink
module: add COM0 and LPT0 to badWindowsNames
Browse files Browse the repository at this point in the history
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
  • Loading branch information
matloob committed May 7, 2024
1 parent aa51b25 commit 6686f41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ var badWindowsNames = []string{
"PRN",
"AUX",
"NUL",
"COM0",
"COM1",
"COM2",
"COM3",
Expand All @@ -515,6 +516,7 @@ var badWindowsNames = []string{
"COM7",
"COM8",
"COM9",
"LPT0",
"LPT1",
"LPT2",
"LPT3",
Expand Down

0 comments on commit 6686f41

Please sign in to comment.