Skip to content

Commit

Permalink
Fix creating debian packages with latest debhelpers
Browse files Browse the repository at this point in the history
Getting this error otherwise:

```shell
+ go build -mod=vendor -v -o obj-x86_64-linux-gnu/bin/tkn -ldflags -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=0.25.0 ./cmd/tkn
build flag -mod=vendor only valid when using modules
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
```

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and tekton-robot committed Jul 25, 2022
1 parent 8c064c2 commit 986905c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tekton/debbuild/control/rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif
BUILD_DATE := $(BUILD_DATE:+0000=Z)

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

override_dh_auto_build:
@set -x ; export XDG_CACHE_HOME=/tmp/cache ; \
Expand Down

0 comments on commit 986905c

Please sign in to comment.