Skip to content

Commit

Permalink
Merge pull request #1924 from elezar/fix-module-test-data
Browse files Browse the repository at this point in the history
Convert testdata to an empty go module
  • Loading branch information
k8s-ci-robot authored Oct 23, 2024
2 parents b9d7fa0 + 8ada0b0 commit b2b5c8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testdata/README.md
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.
3 changes: 3 additions & 0 deletions testdata/go.mod
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.

0 comments on commit b2b5c8b

Please sign in to comment.