pantry/projects/vektra.github.io/mockery/package.yml

24 lines
492 B
YAML
Raw Normal View History

2023-07-25 12:12:24 +03:00
distributable:
url: https://github.com/vektra/mockery/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: vektra/mockery
build:
dependencies:
go.dev: '*'
script:
- go build $ARGS -ldflags="$LDFLAGS"
env:
ARGS:
- -trimpath
- -o={{prefix}}/bin/mockery
LDFLAGS:
- -s
- -w
- -X github.com/vektra/mockery/v2/pkg/logging.SemVer=v{{version}}
provides:
- bin/mockery
test:
script:
- mockery --version | grep {{version}}