From 7076dd199b7361cf7d48a0d3ae1aa91bdea319a3 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 30 Jan 2023 14:38:55 +0100 Subject: [PATCH] rename filename that is invalid for the go module proxy not found: create zip: testdata/importtest.maildir/cur/1642966915.1.mox:2,: malformed file path "testdata/importtest.maildir/cur/1642966915.1.mox:2,": invalid char ':' --- import_test.go | 1 + .../cur/{1642966915.1.mox:2, => 1642966915.1.mox} | 0 .../new/{1642968136.5.mox:2, => 1642968136.5.mox} | 0 3 files changed, 1 insertion(+) rename testdata/importtest.maildir/cur/{1642966915.1.mox:2, => 1642966915.1.mox} (100%) rename testdata/importtest.maildir/new/{1642968136.5.mox:2, => 1642968136.5.mox} (100%) diff --git a/import_test.go b/import_test.go index 61a4eeb..73b33cc 100644 --- a/import_test.go +++ b/import_test.go @@ -43,6 +43,7 @@ func TestMaildirReader(t *testing.T) { createTemp := func(pattern string) (*os.File, error) { return os.CreateTemp("", pattern) } + // todo: rename 1642966915.1.mox to "1642966915.1.mox:2,"? cannot have that name in the git repo because go module (or the proxy) doesn't like it. could also add some flags and test they survive the import. newf, err := os.Open("testdata/importtest.maildir/new") if err != nil { t.Fatalf("open maildir new: %v", err) diff --git a/testdata/importtest.maildir/cur/1642966915.1.mox:2, b/testdata/importtest.maildir/cur/1642966915.1.mox similarity index 100% rename from testdata/importtest.maildir/cur/1642966915.1.mox:2, rename to testdata/importtest.maildir/cur/1642966915.1.mox diff --git a/testdata/importtest.maildir/new/1642968136.5.mox:2, b/testdata/importtest.maildir/new/1642968136.5.mox similarity index 100% rename from testdata/importtest.maildir/new/1642968136.5.mox:2, rename to testdata/importtest.maildir/new/1642968136.5.mox