Skip to content

Commit

Permalink
echo build flags and version in release logs (#357)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul S. Schweigert <[email protected]>

Signed-off-by: Paul S. Schweigert <[email protected]>
Co-authored-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
knative-prow-robot and psschwei authored Oct 19, 2022
1 parent a269cb4 commit ec29d99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@

PLUGIN="kn-quickstart"
VERSION_PACKAGE="knative.dev/kn-plugin-quickstart/internal/command"
COMPONENT_PACKAGE="knative.dev/kn-plugin-quickstart/pkg/install"

source $(dirname $0)/../vendor/knative.dev/hack/release.sh
source $(dirname $0)/build-flags.sh

function build_release() {
source $(dirname $0)/build-flags.sh
local ld_flags="$(build_flags $(dirname $0)/..)"
local version="${TAG}"
# Use vYYYYMMDD-<hash>-local for the version string, if not passed.
[[ -z "${version}" ]] && version="v${BUILD_TAG}-local"
echo "Building version: $version"
echo "Using flags: $ld_flags"

export GO111MODULE=on
export CGO_ENABLED=0
Expand Down

0 comments on commit ec29d99

Please sign in to comment.