diff --git "a/cmd/panic/internal/utf8/\303\271tf8.go" b/cmd/panic/internal/utf8/utf8.go similarity index 74% rename from "cmd/panic/internal/utf8/\303\271tf8.go" rename to cmd/panic/internal/utf8/utf8.go index 4580afad..75753141 100644 --- "a/cmd/panic/internal/utf8/\303\271tf8.go" +++ b/cmd/panic/internal/utf8/utf8.go @@ -3,6 +3,9 @@ // that can be found in the LICENSE file. // Package ùtf8 tests a package and function with non-ASCII names. +// +// The filename itself does not contain unicode as this causes issues +// importing panicparse under bazel. For more context, see PR #78. package ùtf8 // Strùct is a totally normal structure with a totally normal name. diff --git a/stack/context_test.go b/stack/context_test.go index 7e256c5b..40da95a0 100644 --- a/stack/context_test.go +++ b/stack/context_test.go @@ -2023,7 +2023,7 @@ func testPanicUTF8(t *testing.T, s *Snapshot, b *bytes.Buffer, ppDir string) { ), // See TestCallUTF8 in stack_test.go for exercising the methods on // Call in this situation. - pathJoin(ppDir, "internal", "utf8", "ùtf8.go"), + pathJoin(ppDir, "internal", "utf8", "utf8.go"), 10), newCallLocal("main.glob..func21", Args{}, pathJoin(ppDir, "main.go"), 322), newCallLocal("main.main", Args{}, pathJoin(ppDir, "main.go"), 340), diff --git a/stack/stack_test.go b/stack/stack_test.go index c1ad5e80..2bb34367 100644 --- a/stack/stack_test.go +++ b/stack/stack_test.go @@ -163,11 +163,11 @@ func TestCallPkg(t *testing.T) { // See testPanicUTF8 in context_test.go. name: "UTF8", f: "github.com/maruel/panicparse/cmd/panic/internal/%c3%b9tf8.(*Strùct).Pànic", - s: "/gpremote/src/github.com/maruel/panicparse/cmd/panic/internal/ùtf8/ùtf8.go", - DirSrc: pathJoin("ùtf8", "ùtf8.go"), - SrcName: "ùtf8.go", - LocalSrcPath: "/gplocal/src/github.com/maruel/panicparse/cmd/panic/internal/ùtf8/ùtf8.go", - RelSrcPath: "github.com/maruel/panicparse/cmd/panic/internal/ùtf8/ùtf8.go", + s: "/gpremote/src/github.com/maruel/panicparse/cmd/panic/internal/ùtf8/utf8.go", + DirSrc: pathJoin("ùtf8", "utf8.go"), + SrcName: "utf8.go", + LocalSrcPath: "/gplocal/src/github.com/maruel/panicparse/cmd/panic/internal/ùtf8/utf8.go", + RelSrcPath: "github.com/maruel/panicparse/cmd/panic/internal/ùtf8/utf8.go", ImportPath: "github.com/maruel/panicparse/cmd/panic/internal/ùtf8", Location: GOPATH, },