pantry/projects/github.com/cosmtrek/air/package.yml

30 lines
512 B
YAML
Raw Normal View History

2023-11-18 18:28:23 +03:00
distributable:
url: https://github.com/cosmtrek/air/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
display-name: air
versions:
github: cosmtrek/air
provides:
- bin/air
build:
2024-02-21 22:29:22 +03:00
script:
# otherwise it breaks the go compiler's brain
- run: unset LDFLAGS
if: darwin
- make build
- mkdir -p "{{ prefix }}"/bin
- mv air "{{ prefix }}"/bin
2023-11-18 18:28:23 +03:00
env:
linux:
LDFLAGS:
- -buildmode=pie
dependencies:
git-scm.org: '*'
2024-02-21 22:29:22 +03:00
go.dev: ^1.22
2023-11-18 18:28:23 +03:00
2024-02-21 22:29:22 +03:00
test: air -v