diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2021-02-11 18:53:21 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-02-14 16:39:39 +0200 |
commit | 0f3557e13d414e5734a1b3ab9a94e4555cf2fc87 (patch) | |
tree | 5f69555ce1ac0f2fcab2b780e020b1cf8a83bb3e /app-admin | |
parent | app-admin/doctl: version bump to 1.56.0, introduce version support (diff) | |
download | gentoo-0f3557e13d414e5734a1b3ab9a94e4555cf2fc87.tar.gz gentoo-0f3557e13d414e5734a1b3ab9a94e4555cf2fc87.tar.bz2 gentoo-0f3557e13d414e5734a1b3ab9a94e4555cf2fc87.zip |
app-admin/doctl: version support for live ebuild
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/19416
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/doctl/doctl-9999.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app-admin/doctl/doctl-9999.ebuild b/app-admin/doctl/doctl-9999.ebuild index 59e3c4d9aa3c..654c28a745f8 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" |