From 2db1195b3f2141fc3729706378f2601ab5d16511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Wed, 3 Jul 2019 10:47:32 +0200 Subject: [PATCH] fix(release.sh): Point to proper directory to extract the serving version (#221) The argument to build_flags.sh must point to the basedirectory where go.mod is located. Fixes #212 --- hack/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/release.sh b/hack/release.sh index 759071a7b..c48917e0a 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -18,7 +18,7 @@ source $(dirname $0)/../vendor/github.com/knative/test-infra/scripts/release.sh source $(dirname $0)/build-flags.sh function build_release() { - local ld_flags="$(build_flags $(dirname $0))" + local ld_flags="$(build_flags $(dirname $0)/..)" local pkg="github.com/knative/client/pkg/kn/commands" local version="${TAG}" # Use vYYYYMMDD--local for the version string, if not passed.