chore: update linter

update golangci-lint to v1.53.3
This commit is contained in:
Ludovic Fernandez
2023-07-02 10:28:05 +02:00
committed by GitHub
parent c10e468d01
commit 8a6061cc86
13 changed files with 202 additions and 129 deletions

View File

@@ -98,7 +98,7 @@ func wantedFromComment(p string) (res string, goPath string, err bool) {
if err != nil {
panic(err)
}
goPath = filepath.Join(wd, "../_test", strings.TrimPrefix(parts[0], "GOPATH:"))
goPath = filepath.Join(wd, "..", "_test", strings.TrimPrefix(parts[0], "GOPATH:"))
}
if strings.HasPrefix(text, "Output:\n") {
return strings.TrimPrefix(text, "Output:\n"), goPath, false