Commit 64e1bcfb authored by Shengjing Zhu's avatar Shengjing Zhu
Browse files

Regenerate some test certs since they are expired (Closes: #924119)

parent 56394485
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ Build-Depends: debhelper (>= 11~),
               golang-golang-x-sys-dev,
               golang-google-grpc-dev (>= 0.0~git20151002~),
               golang-gopkg-gorethink-gorethink.v3-dev,
               golang-goprotobuf-dev
               golang-goprotobuf-dev,
               openssl
Standards-Version: 4.1.4
Homepage: https://github.com/theupdateframework/notary
Vcs-Browser: https://salsa.debian.org/go-team/packages/notary
+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,14 @@ BUILDTAGS := pkcs11
	      --buildsystem=golang \
	      --with=golang

override_dh_auto_configure:
	# Note(zhsj): some certs are expired and cause test failures.
	# but there's no need to regenerate certs which need cfssljson tool.
	# And I don't want to add another Build-Depends.
	sed -i '/command -v cfssljson/i exit 0' ./fixtures/regenerateTestingCerts.sh
	cd fixtures && ./regenerateTestingCerts.sh
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build -- -tags "$(BUILDTAGS)"