#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := \
	fixtures/test.tar \
	fixtures/test.zip

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

execute_before_dh_auto_install:
	rm -rv debian/_build/src/github.com/ysmood/fetchup/tmp

# === RUN   Example_install_golangci_lint
# --- FAIL: Example_install_golangci_lint (0.00s)
# panic: Not able to find a valid URL to download [https://github.com/golangci/golangci-lint/releases/download/v2.5.0/golangci-lint-2.5.0-linux-amd64.tar.gz] [recovered, repanicked]
SKIP="Example_install_golangci_lint|Example_install_golang_migrate|TestUnZipSymbolLink"
override_dh_auto_test:
	-dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP)
	dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP)
