Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/tools/cmd/gorename: cgo pkg-config not supported by loader(?) #13526
(Sorry for the terrible issue description, I don't really understand all the pieces.)
When I use
I get this in go version go1.4.2 linux/amd64 but also on my other box which has a newer version of go.
I hear that @alandonovan knows about this. I find the error in this module:
For what it's worth, I'd be fine with any simple workarounds you have -- the cgo module is not important to the code I'm editing. For example if I could check in the cgo-generated files to fix this, or use a build tag to remove the cgo files when using gorename, etc... (Obviously just fixing it is preferable though if that's easy.)
...which gives me an idea! I might try inlining the results of pkg-config into cflags/ldflags on the relevant source.
I have the same problem.