Open ghost opened 4 years ago
@zmrenwu are you using go mod vendor
on your local environment ?
Your issue seems to be linked to the go mod
installation witch add an @VERSION
for each downloaded package while your test does not expect the versioning element. If you use a vendor
directory on your local, the test will pass cause the vendored installation does not use the @VERSION packaging.
Everything works fine on local enviroment, but can not run go test in GitHub actions CI.
My GitHub action config:
Some GitHub action logs:
It seems errors can not pass the tests. But I don't know why.