You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To properly use embed, you must create a resources target and add it to the dependencies of your target. Can we make this more ergonomic? Like with #13784, we may want to:
Use tailor to create resources targets based on the embed patterns.
Add dependency inference.
Also, for now, a resource will only be added to the package if it has a corresponding embed directive. It's not enough to just add the resource target to the go_package. We think that is likely acceptable to avoid magic and make sure that if something builds with Pants, it still builds with standard Go tooling. But, we should probably detect this case and error.
The text was updated successfully, but these errors were encountered:
To properly use
embed
, you must create aresources
target and add it to thedependencies
of your target. Can we make this more ergonomic? Like with #13784, we may want to:tailor
to createresources
targets based on the embed patterns.Also, for now, a resource will only be added to the package if it has a corresponding
embed
directive. It's not enough to just add theresource
target to thego_package
. We think that is likely acceptable to avoid magic and make sure that if something builds with Pants, it still builds with standard Go tooling. But, we should probably detect this case and error.The text was updated successfully, but these errors were encountered: