1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@ --builddirectory=_build
# Create a temporary barebone go.mod in order for
# TestGoldenInitCmd/successfully_creates_a_project_based_on_module to pass.
# See 0002-Force-GO111MODULE-on-for-TestGoldenInitCmd-to-pass.patch
execute_before_dh_auto_test:
cd _build/src/github.com/spf13/cobra-cli/cmd && \
GOPROXY=off go mod init github.com/spf13/cobra-cli/cmd
execute_after_dh_auto_test:
$(RM) -v _build/src/github.com/spf13/cobra-cli/cmd/go.mod
|