diff --git a/projects/github.com/cosmtrek/air/package.yml b/projects/github.com/cosmtrek/air/package.yml index 1e7b4e60..cf3af4f2 100644 --- a/projects/github.com/cosmtrek/air/package.yml +++ b/projects/github.com/cosmtrek/air/package.yml @@ -11,19 +11,19 @@ provides: - bin/air build: - script: | - make build - mkdir -p "{{ prefix }}"/bin - mv air "{{ prefix }}"/bin + script: + # otherwise it breaks the go compiler's brain + - run: unset LDFLAGS + if: darwin + - make build + - mkdir -p "{{ prefix }}"/bin + - mv air "{{ prefix }}"/bin env: linux: LDFLAGS: - -buildmode=pie dependencies: git-scm.org: '*' - go.dev: ^1.20 - gnu.org/make: '*' - -test: - air -v + go.dev: ^1.22 +test: air -v