-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Closed
Copy link
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.An issue that has been verified to require only test changes, not just a test failure.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
In https://go.dev/cl/522495 I attempted to fix a test failure by editing test/fixedbugs/issue10607.go
.
My editor invoked gopls
to format the file on save, which added a //go:build
line to the file and added a newline after the // +build
line. I assumed that would be ok, because nothing about the test is specific to the parser.
However, that caused the action parsing in testdir_test.run
to fail, because it expects the first blank line to follow the “action” comment, not the //go:build
line.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.An issue that has been verified to require only test changes, not just a test failure.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.