Add vendor profile and integrate go-vendor-tools
TODO
-
Link to https://fedora.gitlab.io/sigs/go/go-vendor-tools/scenarios/#manually-detecting-licenses when the go_vendor_license
command fails. -
Handle CalledProcessError
s properly
How to test
I suggest using pipx (sudo dnf install pipx
) to run go2rpm from the source tree
pipx install git+https://gitlab.com/gotmax23/go2rpm-fork.git@vendor2
sudo dnf copr enable @go-sig/go-vendor-tools-dev
sudo dnf install go-vendor-tools+all trivy
pipx will install go2rpm to ~/.local/bin
. See steps in https://fedora.gitlab.io/sigs/go/go-vendor-tools/scenarios/#generate-specfile-with-go2rpm.
To pull in new changes:
pipx reinstall go2rpm
To uninstall once you're finished testing:
pipx uninstall go2rpm
To build the package in mock:
fedpkg --release rawhide mockbuild -- -a 'https://download.copr.fedorainfracloud.org/results/@go-sig/go-vendor-tools-dev/fedora-rawhide-$basearch/'
To build the package in Copr:
Add copr://@go-sig/go-vendor-tools-dev
to the External Repositories
list in the settings.
Closes: go-vendor-tools#13 (closed)
Edited by Maxwell G