cmd/compile: -embedcfg flag is undocumented #71942
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
Go version
go 1.24.0
Output of
go env
in your module/workspace:What did you do?
I have a sub-package (hence no go.mod):
I ran
go tool compile -importcfg importcfg
What did you see happen?
Error:
invalid go:embed: build system did not supply embed configuration
What did you expect to see?
I expected it to successfully compile and produce an *.o or *.a file.
Running it with
go build ...
works. It successfully sees the file and embeds it.If it's not allowed, the https://pkg.go.dev/cmd/compile documentation should make note of that.
NOTE: When I remove the embed directive, it works.
The text was updated successfully, but these errors were encountered: