-
Hi! I am observing an unexpected behavior when running the linter locally vs in the CI (Jenkins). Context: Unfortunately I need to replace some dependencies since those are not fetchable in the CI
Running the same cmd
works locally (osx 14.5) but not in the CI (linux), where I am getting typecheck errors saying that the same types from the vendored deps are undefined although go mod verify is fine and I am able to go build and run go tests in the CI. e.g.
Weirdly, when vendoring all dependencies via go mod vendor, the above command works also in the CI context. So far I tried out following options:
Any pointers would be appreciated! Go env CI
Go env local
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, the way you vendor the dependencies is not standard (you are using a folder named I think you should use a standard approach by using Go workspace. |
Beta Was this translation helpful? Give feedback.
Hi,
the way you vendor the dependencies is not standard (you are using a folder named
vendored
), this can be the root of your problem.I think you should use a standard approach by using Go workspace.