compiler: open byte slice and string embeds using the absolute path

The paths vector contains the names of the files that the embed_files_
map is keyed by. While the code processing embed.FS values looks up
the paths in the embed_files_ map, the code processing string and byte
slice embeds tries opening the files using their names directly. Look
up the full paths in the embed_files_ map when opening them.

Change-Id: I8224a0a2d490be490fcfa0cf5a1cf6a5a7cfc278
Trust: Michael Matloob <>
Run-TryBot: Michael Matloob <>
Reviewed-by: Ian Lance Taylor <>
1 file changed