Skip to content

x/tools/cmd/gorename: TestGeneratedFiles failing on linux-amd64-nocgo #21055

Closed
@broady

Description

@broady

Only failing on nocgo, but failing consistently.

Latest log: https://build.golang.org/log/109ba9ba40b4a45b4e59191e5ddd6f004c607a9a

--- FAIL: TestGeneratedFiles (8.30s)
	gorename_test.go:293: 1: -from "\"mytest\"::f" -to "g": command succeeded unexpectedly, output: Renamed 1 occurrence in 1 file in 1 package.
	gorename_test.go:280: 2: -from "\"mytest\"::f" -to "g": unexpected command output: gorename: no object "f" declared in package "mytest"
		 (want: gorename: refusing to modify generated file containing DO NOT EDIT marker:)
	gorename_test.go:280: 3: -from "mytest/0.go::f" -to "g": unexpected command output: gorename: file /tmp/gorename-regtest-602097193/src/mytest/0.go was not part of the loaded program
		 (want: gorename: refusing to modify generated file containing DO NOT EDIT marker:)
	gorename_test.go:280: 4: -offset "main/0.go:#78" -to "bar": unexpected command output: gorename: file /tmp/gorename-regtest-602097193/src/main/0.go was not part of the loaded program
		 (want: cannot rename identifiers in generated file containing DO NOT EDIT marker:)
	gorename_test.go:293: 5: -from "\"test\"::Foo" -to "Bar": command succeeded unexpectedly, output: Renamed 1 occurrence in 1 file in 1 package.
	gorename_test.go:293: 7: -from "\"mytest\"::f" -to "g": command succeeded unexpectedly, output: Renamed 1 occurrence in 1 file in 1 package.

Potentially blocking: #11811 for Go 1.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeOS-LinuxTestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions