From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04E691382C5 for ; Sun, 14 Feb 2021 14:40:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A33FE0636; Sun, 14 Feb 2021 14:40:09 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3136E0636 for ; Sun, 14 Feb 2021 14:40:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D626A335D73 for ; Sun, 14 Feb 2021 14:40:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C20C4C2 for ; Sun, 14 Feb 2021 14:40:06 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1613313579.0f3557e13d414e5734a1b3ab9a94e4555cf2fc87.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/doctl/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/doctl/doctl-9999.ebuild X-VCS-Directories: app-admin/doctl/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 0f3557e13d414e5734a1b3ab9a94e4555cf2fc87 X-VCS-Branch: master Date: Sun, 14 Feb 2021 14:40:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 252d770e-839f-4eee-825f-020d687a9c0f X-Archives-Hash: 2232884367ee73e7b95c5e748330859f commit: 0f3557e13d414e5734a1b3ab9a94e4555cf2fc87 Author: Vladimir Pavljuchenkov (SpiderX) spiderx dp ua> AuthorDate: Thu Feb 11 16:53:21 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Feb 14 14:39:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f3557e1 app-admin/doctl: version support for live ebuild Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Vladimir Pavljuchenkov spiderx.dp.ua> Closes: https://github.com/gentoo/gentoo/pull/19416 Signed-off-by: Joonas Niilola gentoo.org> app-admin/doctl/doctl-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-admin/doctl/doctl-9999.ebuild b/app-admin/doctl/doctl-9999.ebuild index 59e3c4d9aa3..654c28a745f 100644 --- a/app-admin/doctl/doctl-9999.ebuild +++ b/app-admin/doctl/doctl-9999.ebuild @@ -21,8 +21,10 @@ src_unpack() { } src_compile() { + LDFLAGS="-X github.com/digitalocean/doctl.Build=$(git rev-parse --short HEAD) + -X github.com/digitalocean/doctl.Label=dev" GOFLAGS="-v -x -mod=vendor" \ - go build ./cmd/... || die "build failed" + go build -ldflags "$LDFLAGS" ./cmd/... || die "build failed" ./doctl completion bash > doctl.bash || die "completion for bash failed" ./doctl completion zsh > doctl.zsh || die "completion for sh failed"