mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
1dec22e791
closes #3528 closes #3531
27 lines
544 B
YAML
27 lines
544 B
YAML
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}}
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/mockery
|
|
test:
|
|
script:
|
|
- mockery --version | grep {{version}}
|