From 858c4433b94b275a77a47f96702ecd9c84cc68c5 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 10 Oct 2024 15:56:43 -0400 Subject: [PATCH] ci: fix build --- pkg/runtime/python/python.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/runtime/python/python.go b/pkg/runtime/python/python.go index 1708b7574..4237d6b26 100644 --- a/pkg/runtime/python/python.go +++ b/pkg/runtime/python/python.go @@ -114,7 +114,7 @@ func (r *PythonRuntime) Build(ctx context.Context, input *runtime.BuildInput) (* // Copy the file to the target directory err = copyFile(file, destPath) if err != nil { - slog.Error("Error copying file %s to %s: %v", file, destPath, err) + slog.Error("Error copying file", "from", file, "to", destPath, "err", err) continue } @@ -275,7 +275,7 @@ func (r *PythonRuntime) Run(ctx context.Context, input *runtime.RunInput) (runti // Decode the TOML file var pyProject PyProject if _, err := toml.DecodeFile(pyprojectFile, &pyProject); err != nil { - slog.Error("Error decoding TOML file: %v", err) + slog.Error("Error decoding TOML file", "err", err) } // Extract the dependencies @@ -507,4 +507,3 @@ func writeResourcesFile(resourcesFile string, links map[string]json.RawMessage) return nil } -