mdempsky/unconvert

unconvert -apply is rewriting cache for cgo files

mdempsky opened this issue · 1 comments

For files that were processed through cgo, go/packages is giving us the rewritten path, which is somewhere in the .cache/go-build directory. I can't help but think it's Really Bad for unconvert to be mutating these files.

Simple repro case: run unconvert -apply github.com/mdempsky/unconvert/testdata/{regress,cgo}.go and notice that regress.go was rewritten, but cgo.go was not.