1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00

fix: docker annoying warnings

By setting a default as `scratch` we silence the docker annoying warnings, this also ensures that an override is set from makefile.

Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
Noel Georgi
2025-11-05 19:08:18 +05:30
parent cd5a93870c
commit 4ba9b0cf54
2 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
package golang
import (
"fmt"
"path/filepath"
"strings"
@@ -191,10 +192,10 @@ func (toolchain *Toolchain) CompileGitHubWorkflow(output *ghworkflow.Output) err
// CompileDockerfile implements dockerfile.Compiler.
func (toolchain *Toolchain) CompileDockerfile(output *dockerfile.Output) error {
output.Arg(step.Arg("TOOLCHAIN"))
output.Arg(step.Arg("TOOLCHAIN=scratch"))
for _, arg := range toolchain.Docker.ExtraArgs {
output.Arg(step.Arg(arg))
output.Arg(step.Arg(fmt.Sprintf("%s=scratch", arg)))
}
toolchainStage := output.Stage("toolchain").