1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
export DH_GOLANG_EXCLUDES := python_interop go-tuf/v0/cmd/tuf
execute_before_dh_auto_build:
find _build/src/github.com/theupdateframework/go-tuf/v0 -type f -print0 | xargs -0 perl -pi -e 's,github.com/flynn/go-docopt,github.com/docopt/docopt-go,'
cd _build/src/github.com/theupdateframework/go-tuf/v0; \
rgrep -q "github.com/theupdateframework/go-tuf/v0" . \
|| find . -type f -print0 | xargs -0 \
perl -pi -e 's,github.com/theupdateframework/go-tuf,github.com/theupdateframework/go-tuf/v0,'
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
override_dh_auto_install:
dh_auto_install -- --no-binaries
execute_before_dh_auto_test:
rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/fetcher/fetcher_test.go
rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/trustedmetadata/trustedmetadata_test.go
rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/metadata_test.go
rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/metadata_api_test.go
|