From 746e029a02b2b7e21e27676fd3b1d559d56c0f89 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 22 Jul 2026 17:51:00 +0200 Subject: [PATCH] General: Fixed Distrobuilder build script --- .vscode/tasks.json | 2 +- Other-Builds/DistroBuilder.Jenkinsfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 084fe59..babaf26 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -27,7 +27,7 @@ { "label": "SetupImgBuilder", "type": "shell", - "command": "mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC", + "command": "export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp; mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC", "problemMatcher": [], "group": { "kind": "build", diff --git a/Other-Builds/DistroBuilder.Jenkinsfile b/Other-Builds/DistroBuilder.Jenkinsfile index 3e2544c..c5eac05 100644 --- a/Other-Builds/DistroBuilder.Jenkinsfile +++ b/Other-Builds/DistroBuilder.Jenkinsfile @@ -37,6 +37,7 @@ pipeline { then sed -i '/mirrorlist=/c\baseurl=http://192.168.200.20/centos/\$releasever/BaseOS/x86_64/os/' $WORKSPACE/sources/centos-http.go fi + export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp gofmt -s -w . go build -o build -v ./... go clean