closes #6000
This commit is contained in:
Jacob Heider 2024-04-26 14:30:55 -04:00 committed by Jacob Heider
parent db823dd237
commit 771f3d9508

View file

@ -0,0 +1,30 @@
distributable:
url: https://github.com/reproducible-containers/diffoci/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: reproducible-containers/diffoci
provides:
- bin/diffoci
build:
dependencies:
go.dev: 1.21.0
script:
- make
- mkdir -p {{prefix}}/bin
- make install
env:
PREFIX: ${{prefix}}
VERSION: ${{version}}
linux:
# override
GO_LDFLAGS:
- -s
- -w
- -X github.com/reproducible-containers/diffoci/cmd/diffoci/version.Version={{version}}
- -buildmode=pie
# more requires docker or downloading OCI images
test: "diffoci info | grep 'Version: {{version}}'"