feat: add boringcrypto builds for linux (#9528)

* feat: add boringcrypto builds for linux

Signed-off-by: Spike Curtis <spike@coder.com>

* strip debug symbols, add BoringCryto to buildinfo

Signed-off-by: Spike Curtis <spike@coder.com>

* Fix TestVersion

Signed-off-by: Spike Curtis <spike@coder.com>

---------

Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
Spike Curtis
2023-09-05 13:12:38 +00:00
committed by GitHub
parent ce08c47b8a
commit 79cd6047dc
7 changed files with 61 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
//go:build boringcrypto
package buildinfo
import "crypto/boring"
var boringcrypto = boring.Enabled()
+4
View File
@@ -87,6 +87,10 @@ func IsAGPL() bool {
return strings.Contains(agpl, "t")
}
func IsBoringCrypto() bool {
return boringcrypto
}
// ExternalURL returns a URL referencing the current Coder version.
// For production builds, this will link directly to a release.
// For development builds, this will link to a commit.
+5
View File
@@ -0,0 +1,5 @@
//go:build !boringcrypto
package buildinfo
var boringcrypto = false