mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(dagger): correctly inject version number during build (#6596)
* fix(dagger): correctly inject version number during build * test version --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
ede2c6176d
commit
6167620a57
1 changed files with 2 additions and 4 deletions
|
@ -21,16 +21,14 @@ build:
|
|||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X go.dagger.io/dagger/version.Version={{ version }}
|
||||
- -X go.dagger.io/dagger/version.Revision=tea
|
||||
- -X github.com/dagger/dagger/engine.Version={{ version }}
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test: |
|
||||
dagger version
|
||||
test: dagger version | grep '{{version}}'
|
||||
# This is a better test, but we might mask failures using || true
|
||||
# think more about this.
|
||||
#out=$(dagger query <<EOF 2>&1 || true
|
||||
|
|
Loading…
Reference in a new issue