From 8cc422a61ff8d847c6ddb33a86499829f5122f24 Mon Sep 17 00:00:00 2001 From: Samuel Littley Date: Tue, 29 Oct 2024 14:41:56 +0000 Subject: [PATCH] Build Puku (more) statically (#130) Fixes #129 Not setting static = True as that won't work well for cross compilation. --- ChangeLog | 5 +++++ VERSION | 2 +- cmd/puku/BUILD | 2 +- third_party/go/BUILD | 4 ++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1591dea..a12a26b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Version 1.12.0 +-------------- + * Set `netgo` and `osusergo` tags on the Go standard library to build puku more statically and + avoid libc dependency + Version 1.11.1 ------------- * Fix a bug causing a panic when the third party directory is misconfigured diff --git a/VERSION b/VERSION index 720c738..0eed1a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.1 +1.12.0 diff --git a/cmd/puku/BUILD b/cmd/puku/BUILD index 9d3e1c7..7c357d1 100644 --- a/cmd/puku/BUILD +++ b/cmd/puku/BUILD @@ -16,12 +16,12 @@ go_binary( "//licences", "//logging", "//migrate", + "//options", "//please", "//proxy", "//sync", "//version", "//watch", "//work", - "//options", ], ) diff --git a/third_party/go/BUILD b/third_party/go/BUILD index 4052e42..4c8518d 100644 --- a/third_party/go/BUILD +++ b/third_party/go/BUILD @@ -8,6 +8,10 @@ go_toolchain( go_stdlib( name = "std", + tags = [ + "netgo", + "osusergo", + ], ) go_repo(