From 1d0d9801861138705e655de691d7bb9c8b3aac4b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 20 Jul 2021 09:51:49 +0000 Subject: pkg/build: modify builder interface Modify the `builder` interface in such a way that build method also returns a struct containing extra information about the build process. This allows to fetch compiler ID from individual builders. Also, this makes the `signer` interface obsolete, as this information can also go into that structure. --- pkg/build/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/build/test.go') diff --git a/pkg/build/test.go b/pkg/build/test.go index 93ae27f96..a4f59d562 100644 --- a/pkg/build/test.go +++ b/pkg/build/test.go @@ -5,8 +5,8 @@ package build type test struct{} -func (tb test) build(params Params) error { - return nil +func (tb test) build(params Params) (ImageDetails, error) { + return ImageDetails{}, nil } func (tb test) clean(string, string) error { -- cgit mrf-deployment