mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
e29e9faf7a
* chore(oapi-codegen): update repository location * rename (but keep old in case people use it) --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
32 lines
753 B
YAML
32 lines
753 B
YAML
distributable:
|
|
url: https://github.com/oapi-codegen/oapi-codegen/archive/refs/tags/{{version.tag}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: oapi-codegen/oapi-codegen
|
|
|
|
warnings:
|
|
- renamed
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.21
|
|
env:
|
|
CGO_ENABLED: 0
|
|
LDFLAGS:
|
|
- -extldflags=-static
|
|
- -w
|
|
- -s
|
|
- -X=main.noVCSVersionOverride=v{{version}}
|
|
script:
|
|
- go mod download
|
|
- go build -v -ldflags="$LDFLAGS" -o '{{prefix}}'/bin/oapi-codegen ./cmd/oapi-codegen
|
|
|
|
# package renamed to github.com/oapi-codegen/oapi-codegen
|
|
# provides:
|
|
# - bin/oapi-codegen
|
|
|
|
test:
|
|
- oapi-codegen -version | grep v{{version}}
|
|
- oapi-codegen -package petstore petstore-expanded.yml > petstore.gen.go
|
|
- test -f petstore.gen.go
|