From 8ada0b04affae174d00c35bbfca2d1f5dbc1cc7f Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 22 Oct 2024 18:14:54 +0200 Subject: [PATCH] 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 --- testdata/README.md | 3 +++ testdata/go.mod | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 testdata/README.md create mode 100644 testdata/go.mod diff --git a/testdata/README.md b/testdata/README.md new file mode 100644 index 000000000..ff08cb1de --- /dev/null +++ b/testdata/README.md @@ -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. diff --git a/testdata/go.mod b/testdata/go.mod new file mode 100644 index 000000000..effa25957 --- /dev/null +++ b/testdata/go.mod @@ -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.