Skip to content

Commit

Permalink
+github.com/peak/s5cmd (#8568)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Heider <[email protected]>
  • Loading branch information
tannevaled and jhheider authored Feb 3, 2025
1 parent 3c6c9e2 commit 2ad968b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions projects/github.com/peak/s5cmd/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
distributable:
url: git+https://github.com/peak/s5cmd
ref: ${{version.tag}}

display-name: s5cmd

versions:
github: peak/s5cmd

build:
dependencies:
git-scm.org: '*'
go.dev: ~1.20
env:
CGO_ENABLED: 0
GO_LDFLAGS:
- -s
- -w
- -X github.com/peak/s5cmd/v2/version.Version={{version}}
- -X github.com/peak/s5cmd/v2/version.GitCommit=$(git rev-parse --short HEAD || echo)
linux:
GO_LDFLAGS:
- -buildmode=pie
script: go build -v -ldflags="${GO_LDFLAGS}" -mod=vendor -o "{{ prefix }}"/bin/s5cmd

provides:
- bin/s5cmd

test: test "$(s5cmd version|cut -d'-' -f1)" = v{{version}}

0 comments on commit 2ad968b

Please sign in to comment.