pantry/projects/devpod.sh/cli/package.yml
Jacob Heider 6d56d8a239 +devpod
closes #5774
2024-04-12 19:03:59 -04:00

28 lines
555 B
YAML

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}}"