#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := \
	codegen/internal/generator/templates/ \
	# EOL

# XXX: Some tests fail hard when asynctimerchan!=0 which is the default when
# GO111MODULE is set to off.
export GODEBUG = asynctimerchan=0

%:
	dh $@ --builddirectory=debian/_build

override_dh_auto_install:
	dh_auto_install -- --no-binaries

# XXX: Some tests fail hard when GO111MODULE=off, disable them for now with
# -short, the other failing test is missing module information.
override_dh_auto_test:
	dh_auto_test -- -short -skip 'TestModuleVersion'
