burrowers / garble

Obfuscate Go builds
BSD 3-Clause "New" or "Revised" License
3.93k stars 248 forks source link

internal/linker: fix patches for Go 1.21 (master) #735

Closed mvdan closed 1 year ago

mvdan commented 1 year ago

(see commit messages - please do not squash)

mvdan commented 1 year ago

1.21 has changed enough that the patches aren't compatible with 1.20. I split them up; see the second commit message, and https://github.com/burrowers/go-patches/pulls. If you're happy with these, we can close your original PR, as from now on we should have one PR for each of the major versions we support (often 2).

mvdan commented 1 year ago

Correct :) My 1.20 PR is basically the same as yours, just targetting release-branch.go1.20 so that we don't get conflicts. The 1.21 is targetting master, as that doesn't yet have a release branch. Those patches were rebased and fixed up.