commit: 0f3557e13d414e5734a1b3ab9a94e4555cf2fc87 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> AuthorDate: Thu Feb 11 16:53:21 2021 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> 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 <AT> spiderx.dp.ua> Closes: https://github.com/gentoo/gentoo/pull/19416 Signed-off-by: Joonas Niilola <juippis <AT> 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"
