Debian Codegraph @

debian/rules

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