Skip to content

Commit 6c5604e

Browse files
committed
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 <[email protected]>
1 parent 56bbad8 commit 6c5604e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

testdata/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Some of the test data in this folder contains colon characters which causes "go get" commands to fail with "invalid char ':'".
2+
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
3+
ignored when "go get" is executed.

testdata/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This empty go.mod file ensures that the testdata folder is not included
2+
// in the top-level module. This prevents issues such as unsupported characters
3+
// in path names.

0 commit comments

Comments
 (0)