x/exp/trace: gen.bash depends on GNU's sed, fails with BSD's #68403
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
go version devel go1.23-06feff6279 Tue Jul 2 15:36:40 2024 -0700 darwin/arm64 [CL 596355 PS 1, parent is f12ac5b]
Output of
go env
in your module/workspace:What did you do?
In the x/exp repo, on macOS,
I'm working with x/exp at CL 597177 PS 1, with a parent of golang/exp@7f521ea
What did you see happen?
With git reporting 52 files modified and 3 deleted.
What did you expect to see?
I expected ./trace/gen.bash to copy the execution trace parser from GOROOT (which it did), to apply the code rewrites necessary to use it in its new location (did not) and without deleting the hand-maintained files in the ./trace directory (did not).
This relates to the meaning of sed's "-i" flag being different on GNU vs BSD.
I'll prepare a patch to make it work on both. That probably means using a non-empty backup suffix and subsequently deleting those copies. Does that sound like a good plan, @mknyszek @cagedmantis ?
The text was updated successfully, but these errors were encountered: