-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/build: missing Position information for go:embed patterns #43632
Comments
Marking as release-blocker for Go 1.16 because it impacts However, we could perhaps decide to ship the |
Change https://golang.org/cl/283638 mentions this issue: |
Change https://golang.org/cl/283636 mentions this issue: |
For #43469 For #43632 Change-Id: I9ac2da690344935da0e1dbe00b134dfcee65ec8a Reviewed-on: https://go-review.googlesource.com/c/go/+/283636 Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Jay Conrod <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
Change https://golang.org/cl/285213 mentions this issue: |
For #40070 For #41191 For #43469 For #43632 Change-Id: I6dc6b6ea0f35876a4c252e4e287a0280aca9d502 Reviewed-on: https://go-review.googlesource.com/c/go/+/285213 Trust: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
Go 1.16 adds support for
go:embed
patterns in source files (#41191), which are parsed and reported by thego/build
package in the {,Test
,XTest
}EmbedPatterns
fields of thebuild.Package
struct as of CL 243941.Much like imports, embed patterns can introduce errors in the build due to missing inputs — in this case, missing embedded files. Those errors need to be attributed back to source file positions.
For imports, the
build.Package
struct represents the file and line information astoken.Position
values in the {,Test
,XTest
}ImportPos
fields. However, the corresponding information for embed patterns seems not to be present.This came to my attention via CL 280452.
The text was updated successfully, but these errors were encountered: