average-house-20720
04/05/2024, 8:24 AMgopls
.
As the generated files aren't written to disk as part of the project, there is no way for gopls
to know about them. The guide says to run pants export-codegen ::
to satisfy go mod tidy
, but even this I don't get.
pants export-codegen ::
will export the files to dist/codegen
, which will never be the import path in the go source files, so I don't get how this satisfies either go mod tidy
or gopls
.
I feel like I am not understanding something. Anyone got any tips for me? ๐average-house-20720
04/05/2024, 8:30 AMGOPACKAGESDRIVER
, which you need to set up the editor with to replace go modules way of discovering packages.
It wasn't a perfect solution though.narrow-vegetable-37489
04/05/2024, 8:45 AMexport-codegen
. Pants is happy, Go and Go-related tools are happy, my IDE is happy, so good enough for me.average-house-20720
04/05/2024, 8:46 AMhappy-kitchen-89482
04/05/2024, 7:17 PM