Open mx-psi opened 3 months ago
seems like buildmode=pie doesn't necessarily do anything if CGO is disabled
@jackgopack4 I believe some platforms do support it and others do not (at least that's what I get from this comment: https://github.com/golang/go/issues/64875#issuecomment-1874249860 ). We could pass the option only in those platforms
@mx-psi you're right; the error message is exactly the same and only happens on unsupported platforms. will add conditional logic and test again.
I think the actual PR that fixes this is #726, reopening until we merge that one
apologies for the confusion
From the security audit:
Since we do not use CGO, I think this should be as easy as adding
-buildmode=pie
.