tailor
should not create go_package
targets without a valid owning go.mod
#15735
Labels
backend: Go
Go backend-related issues
onboarding
Issues that affect a new user's onboarding experience
Similar to #15734:
tailor
will currently creatego_package
targets forgo
files, even if they do not have a valid associatedgo.mod
target.Two cases of this encountered in "the wild":
tailor
on thepantsbuild/pants
repo (with all existing configuration ignored) test go files without associatedgo.mod
s are picked up bygo_package
.go.mod
that we will not be able to successfully build that code.tailor
on https://github.com/OpenAPITools/openapi-generator, thego.mod
fails to parse.go.mod
with replace #14996) should also be fixed directly. But if it's possible to statically attempt to load/validate thego.mod
content duringtailor
and render as a warning instead, that would be likely to catch more unknowns in the future.The text was updated successfully, but these errors were encountered: