Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
go/build: sourcehut requires characters considered unsafe for cgo names #32260
build.go has a set of safe characters which can be present in CFLAGS:
Sourcehut packages always have
~ has a special meaning in the shell, but it is URL safe and, per the comments in build.go, this string is never expanded with a shell.
EDIT: added permalink
Yeah, I know. The point I was getting at is that this is about as simple of a change as Golang can get. Thanks a lot for putting up the patch, I appreciate it!