average-balloon-31442
08/01/2022, 3:20 PMworkspace.go, but not in go.mod Every lib has own go.mod .
I have found this https://github.com/pantsbuild/pants/issues/13114#issuecomment-1185321565 comment and not sure, that I’m getting the point. Right now, I cannot build/run the service, because the lib is not found.
I have tried with
go_third_party_package(
name="psykhe-common",
import_path="go/lib/common",
)
but go_third_party_package is expected to be generated from go.mod file.
Note: for now, Pants only supports repositories using a singleDoes it mean that I cannot use pants for managing GO projects because I have more than 1. Please comment on #13114 if you need support for greater than onego.modso that we can prioritize adding support.go.mod
go.mod file in the monorepo?fast-nail-55400
08/01/2022, 4:00 PMgo_mod target in a repository. It simplified the dependency inference feature back when bootstrapping the initial version of the backend. Easier to wait until someone actually needed the feature to then invest further work in the backend.fast-nail-55400
08/01/2022, 4:01 PMfast-nail-55400
08/01/2022, 4:01 PMaverage-balloon-31442
08/01/2022, 4:03 PMreplace for internal librariesfast-nail-55400
08/01/2022, 4:08 PMreplace in that case. Which I started to do a while back but would need to continue the work. https://github.com/tdyas/pants/tree/golang_handle_replace)fast-nail-55400
08/03/2022, 6:41 AMfast-nail-55400
08/03/2022, 6:59 AMfast-nail-55400
09/12/2022, 1:36 PMmain and was back-ported to the 2.14 branch (but has not been released yet, will be in next RC release).