From 26ba8a6e13cb04a2c0ecd1ff5625a7908554badc Mon Sep 17 00:00:00 2001 From: Anshul Sirur Date: Mon, 18 Jan 2021 14:24:52 +0100 Subject: [PATCH] github-cli: fix setting build version and date --- srcpkgs/github-cli/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index e65f708957e..1f2bf7af608 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -6,7 +6,7 @@ wrksrc="cli-${version}" build_style=go build_helper=qemu go_import_path="github.com/cli/cli/cmd/gh" -go_ldflags="-X github.com/cli/cli/command.Version=v${version}" +go_ldflags="-X github.com/cli/cli/internal/build.Version=v${version}" short_desc="GitHub CLI tool" maintainer="shizonic " license="MIT" @@ -19,7 +19,7 @@ pre_build() { local _date if [ "$SOURCE_DATE_EPOCH" ]; then _date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")" - go_ldflags="$go_ldflags -X github.com/cli/cli/command.BuildDate=${_date}" + go_ldflags="$go_ldflags -X github.com/cli/cli/internal/build.Date=${_date}" fi }