From a6a002ba925122add4fc5ed8e59b4e3bb062e075 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 9 May 2024 13:00:24 -0400 Subject: [PATCH] +pack closes #6092 --- projects/buildpacks.io/package.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 projects/buildpacks.io/package.yml diff --git a/projects/buildpacks.io/package.yml b/projects/buildpacks.io/package.yml new file mode 100644 index 00000000..7844c8a4 --- /dev/null +++ b/projects/buildpacks.io/package.yml @@ -0,0 +1,24 @@ +distributable: + url: https://github.com/buildpacks/pack/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: buildpacks/pack + +build: + dependencies: + go.dev: ^1.22 + script: go build -v -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/pack ./cmd/pack + env: + GO_LDFLAGS: + - -s + - -w + - -X github.com/buildpacks/pack.Version={{ version }} + linux: + GO_LDFLAGS: + - -buildmode=pie + +provides: + - bin/pack + +test: test "$(pack version)" = "{{ version }}"