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
This commit is contained in:
Roland Huß 2019-07-03 10:47:32 +02:00 committed by Knative Prow Robot
parent 500b7d1371
commit 2db1195b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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-<hash>-local for the version string, if not passed.