From f8944f8f481ceb13ecbb5849ffad7f52dffc5a3d Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 7 Oct 2018 16:34:21 +0000 Subject: [PATCH] Avoid "module name is too long" error --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index a3f4289..94d9c21 100644 --- a/main.go +++ b/main.go @@ -133,8 +133,7 @@ func dockerCommand(container, workdir, timeout, command string) *exec.Cmd { } func build(tmp string, ka artifact, ki kernelInfo) (outPath, output string, err error) { - target := fmt.Sprintf("%s_%s-%s-%s", ka.Name, ki.DistroType, - ki.DistroRelease, ki.KernelRelease) + target := fmt.Sprintf("%d_%s", rand.Int(), ki.DistroRelease) tmpSourcePath := tmp + "/source"