distributable: url: https://github.com/passbolt/go-passbolt-cli/archive/refs/tags/{{version.tag}}.tar.gz strip-components: 1 display-name: go-passbolt-cli versions: github: passbolt/go-passbolt-cli build: dependencies: go.dev: ^1.20 env: CGO_ENABLED: 0 LDFLAGS: - -s - -w - -X main.version={{ version }} - -X main.date=$( date -u +'%Y-%m-%dT%H:%M:%SZ' ) - -X main.commit=$( git rev-parse HEAD ) linux: LDFLAGS: - -buildmode=pie script: - go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/passbolt provides: - bin/passbolt test: test "$(passbolt -v|cut -d' ' -f 3)" = {{ version }}