#!/usr/bin/make -f

# Some dependencies of the config module are not packaged in Debian
export DH_GOLANG_EXCLUDES := ^gitlab.com/gitlab-org/api/client-go/v2/config(/|$$)
export DH_GOLANG_INSTALL_EXTRA := gitlaboauth2/success.html

%:
	dh $@ --builddirectory=debian/build --buildsystem=golang

override_dh_auto_test:
	# Tests are flaky
	dh_auto_test || true

execute_before_dh_builddeb:
	@cat debian/files
