Just curious if there is a specific dirctory layou...
# general
b
Just curious if there is a specific dirctory layout expected for using Pants to manage a repo which contains both Go and Python projects? As this repo contains Go and Python, and it is also using Docker & Helm to deploy to Kubernetes, I moved the Go source code to
src/go
directory. But it seems like
vet
and
golangci-lint
backend doesn’t work nicely with this layout.
g
Do you have any error or other logs to share? Hard to offer any advice on "doesn't work nicely" 😉
b
Adding
"pants.backend.experimental.go.lint.golangci_lint",
to
backend_packages
in the sample projects (https://github.com/pantsbuild/example-codegen/blob/main/pants.toml#L3) generates the same outcome too.
g
Thanks!
b
Running the
golangci-lint
command directly in the project
g
I'd expect
golangci-lint run src/go/...
might work? Just looking at the layout
b
Yup, it does
Sample run within the src/go directory. Need to copy some generated files to overcome some Go module issue.
Similarly with
pants.backend.experimental.go.lint.vet
backend_packages
too