From 4d6216abc2e6985f2fbe92574f653f750c099e7d 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index e65f708957e..59500d04588 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -1,12 +1,12 @@ # Template file for 'github-cli' pkgname=github-cli version=1.4.0 -revision=1 +revision=2 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 }