Closed Ronniexie closed 5 years ago
go version go1.9.6 linux/amd64
can't load package: package acheck/pkg/testhttp: invalid import path "acheck/pkg/testhttp" ERROR: exit status 1
Reason: go1.9 add a check "func SafeArg" in https://github.com/golang/go/blob/release-branch.go1.9/src/cmd/go/internal/load/pkg.go Less obviously, args beginning with @ are not safe (they look like GNU binutils flagfile specifiers, sometimes called "response files")
So,withmock need modify (testMark mark = "@") in lib/lib.go
go version
go version go1.9.6 linux/amd64
withmock go test
can't load package: package acheck/pkg/testhttp: invalid import path "acheck/pkg/testhttp" ERROR: exit status 1
Reason: go1.9 add a check "func SafeArg" in https://github.com/golang/go/blob/release-branch.go1.9/src/cmd/go/internal/load/pkg.go Less obviously, args beginning with @ are not safe (they look like GNU binutils flagfile specifiers, sometimes called "response files")
So,withmock need modify (testMark mark = "@") in lib/lib.go