From 6d56d8a23980013f9c6350d988325f1cec4650d6 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 12 Apr 2024 18:48:19 -0400 Subject: [PATCH] +devpod closes #5774 --- projects/devpod.sh/cli/package.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/devpod.sh/cli/package.yml diff --git a/projects/devpod.sh/cli/package.yml b/projects/devpod.sh/cli/package.yml new file mode 100644 index 00000000..a205f4df --- /dev/null +++ b/projects/devpod.sh/cli/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/loft-sh/devpod/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: loft-sh/devpod + +build: + dependencies: + go.dev: ^1.21 + script: go build $ARGS -ldflags="$GO_LDFLAGS" ./ + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/devpod + GO_LDFLAGS: + - -s + - -w + - -X=github.com/loft-sh/devpod/pkg/version.version="v{{version}}" + linux: + GO_LDFLAGS: + - -buildmode=pie + +provides: + - bin/devpod + +test: test "$(devpod version)" = "v{{version}}"