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
@jordan-da, you can use go list -json=EmbedFiles to get cmd/go to report that data.
That is correct, but go list must download all your modules before it can reason about it's task and I am only interested in local, inner module files.
I am building a tool that uses https://pkg.go.dev/go/build#Package to list all the files that are in a local module's package (and it's local module dependency packages). Go files is easy GoFiles.. but there is no EmbedFiles in this package like there is in go list, only EmbedPatterns.
I can use EmbedPatterns... but then I need ResolveEmbed to turn those into actual files. This is why I am asking for it ResolveEmbed to be externalized. That OR, add EmbedFiles to build.Context.
Proposal Details
It would be nice if
ResolveEmbed
located here:https://github.com/golang/go/blob/master/src/cmd/go/internal/load/pkg.go#L2093-L2101
...was externally available.
Embed directives are extremely proprietary and very tricky to resolve without a function such as this.
The text was updated successfully, but these errors were encountered: