/ go Public
cmd/go: -overlay doesn't apply to embed directives #59406
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
go:embedto embed a single file as string. The program prints file content and exits. I have an entry in
overlay.jsonwith the path of the file being embedded as a key pointing to another file. I pass
-overlayoption. Then I invoke the resulting binary.
What did you expect to see?
The content from the replacement file as specified via
What did you see instead?
The content from the original file.
The reproducer is available at https://github.com/mejedi/golang-overlay-experiment
The text was updated successfully, but these errors were encountered: