diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..707d379 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vendor +uc diff --git a/common/uc.spec b/common/uc.spec index adbb6d8..07a6af4 100644 --- a/common/uc.spec +++ b/common/uc.spec @@ -36,7 +36,9 @@ Simple utility for counting unique lines. %build export GOPATH=$(pwd) -go build src/github.com/essentialkaos/%{name}/%{name}.go +pushd src/github.com/essentialkaos/%{name} + go build -mod vendor -o $GOPATH/%{name} %{name}.go +popd %install rm -rf %{buildroot}