-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert testdata to an empty go module
This ensures that the testdata folder is not included in the top-level module and prevents issues such as unsupported characters in path names. Signed-off-by: Evan Lezar <elezar@nvidia.com>
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Some of the test data in this folder contains colon characters which causes "go get" commands to fail with "invalid char ':'". | ||
The empty go.mod file is a workaround to prevent this error. This effectively makes this folder its own go module, so it will be | ||
ignored when "go get" is executed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This empty go.mod file ensures that the testdata folder is not included | ||
// in the top-level module. This prevents issues such as unsupported characters | ||
// in path names. |