mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+shovel
This commit is contained in:
parent
465f2028f3
commit
275010fe4d
1 changed files with 37 additions and 0 deletions
37
projects/indexsupply.com/shovel/package.yml
Normal file
37
projects/indexsupply.com/shovel/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
distributable:
|
||||
url: https://github.com/indexsupply/code/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: indexsupply/code/tags
|
||||
strip: [/beta/] # FIXME: remove after 1.0
|
||||
|
||||
provides:
|
||||
- bin/shovel
|
||||
|
||||
companions:
|
||||
postgresql.org: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
working-directory: cmd/shovel
|
||||
script:
|
||||
- go mod download
|
||||
- go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC ./
|
||||
env:
|
||||
BUILDLOC: '{{prefix}}/bin/shovel'
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X main.Version={{version}}
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test:
|
||||
script:
|
||||
- shovel --help
|
||||
- shovel -version | grep '^v{{version}}'
|
Loading…
Reference in a new issue