fix(pebble)

closes #5782
This commit is contained in:
Jacob Heider 2024-04-03 14:02:57 -04:00
parent f9609abda4
commit f0ef970aa6
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -10,9 +10,9 @@ versions:
- /^v/
platforms:
# not compiling presently
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
# - darwin
# not compiling presently
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
# - darwin
- linux
build:
@ -31,9 +31,16 @@ build:
- -buildmode=pie
script:
- go generate ./cmd
- run: sed -i 's/Version = ".*"/Version = "v{{version}}"/' version_generated.go
working-directory: cmd
if: <1.2
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
provides:
- bin/pebble
- bin/pebble
test: test "$(pebble version --client)" = v{{version}}
test:
- run: pebble version | grep 'client v{{version}}'
if: <1.2
- run: test "$(pebble version --client)" = v{{version}}
if: '>=1.2'