fix(sftpgo)

closes #6154
This commit is contained in:
Jacob Heider 2024-05-15 17:07:06 -04:00 committed by Jacob Heider
parent aa7c57f3fe
commit e0151d6c08

View file

@ -10,11 +10,11 @@ versions:
build: build:
dependencies: dependencies:
go.dev: '*' go.dev: ^1.22.2
env: env:
CGO_ENABLED: 0 CGO_ENABLED: 0
COMMIT_SHA: "$(git describe --always --abbrev=8 --dirty)" COMMIT_SHA: '$(git describe --always --abbrev=8 --dirty)'
VERSION_DATE: "$(date -u +%FT%TZ)" VERSION_DATE: '$(date -u +%FT%TZ)'
LDFLAGS: LDFLAGS:
- -s - -s
- -w - -w
@ -23,7 +23,11 @@ build:
linux: linux:
LDFLAGS: LDFLAGS:
- -buildmode=pie - -buildmode=pie
script: go build -v -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/sftpgo script:
# fails to find sqlite3.Error
- run: TAGS="-tags nosqlite"
if: 2.6.0
- go build -v $TAGS -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/sftpgo
provides: provides:
- bin/sftpgo - bin/sftpgo