commit | 9769564e7456453e2273071d0faa5aab2554ff78 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Thu Feb 11 19:28:57 2021 -0500 |
committer | Ian Lance Taylor <iant@golang.org> | Fri Feb 12 11:18:32 2021 -0800 |
tree | 3a471e8ee60b7be687ab7501f70379618adcf174 | |
parent | f3d7fd1475eb1ed2b3a39f988b33db176d4f7419 [diff] |
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. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/291429