From 3656142047218c4840e9ba1ceea5510f59adf859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Wed, 14 Oct 2020 09:03:05 +0200 Subject: [PATCH] Fix build in ELN See the upstream PR for more information: https://github.com/osbuild/osbuild-composer/pull/1029 Resolves: rhbz#1884383 --- osbuild-composer.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osbuild-composer.spec b/osbuild-composer.spec index 1771606..e779a7d 100644 --- a/osbuild-composer.spec +++ b/osbuild-composer.spec @@ -15,7 +15,7 @@ As such, it is a drop-in replacement. } Name: osbuild-composer -Release: 1%{?dist} +Release: 2%{?dist} Summary: An image building service based on osbuild # osbuild-composer doesn't have support for building i686 images @@ -156,6 +156,8 @@ install -m 0644 -vp test/cloud-init/* %{buildroot}%{_datad %if 0%{?rhel} export GOFLAGS=-mod=vendor export GOPATH=$PWD/_build:%{gopath} +# cd inside GOPATH, otherwise go with GO111MODULE=off ignores vendor directory +cd $PWD/_build/src/%{goipath} %gotest ./... %else %gocheck