You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to generate specs in a codebase with a go directive like go 1.21.5, the following error is returned:
err: exit status 1: stderr: go: errors parsing go.mod:
/go/src/github.com/voiapp/rms-gateway/go.mod:3: invalid go version '1.21.5': must match format 1.23
Steps to reproduce
Presumably whatever specs generation command. But in my case: docker run --rm -v /Users/dannyskoog/GIT/go/src/rms-gateway:/go/src/github.com/voiapp/rms-gateway -w /go/src/github.com/voiapp/rms-gateway quay.io/goswagger/swagger:v0.30.5 generate spec --exclude-deps -i ./api/swagger-definitions.yaml -o ./api/swagger.json
Environment
swagger version: 0.30.5
go version: 1.21.5
OS: Ubuntu 22.04.3
The text was updated successfully, but these errors were encountered:
I realised that the quay.io/goswagger/swagger:master Docker image seems to work.
The docs, although, implies (implicitly) that the latest tag should be used (see https://goswagger.io/install.html#docker-image-). Is that intentional, given the fact that the latest tag hasn't been updated in 7 months?
Problem statement
When trying to generate specs in a codebase with a go directive like
go 1.21.5
, the following error is returned:Steps to reproduce
Presumably whatever specs generation command. But in my case:
docker run --rm -v /Users/dannyskoog/GIT/go/src/rms-gateway:/go/src/github.com/voiapp/rms-gateway -w /go/src/github.com/voiapp/rms-gateway quay.io/goswagger/swagger:v0.30.5 generate spec --exclude-deps -i ./api/swagger-definitions.yaml -o ./api/swagger.json
Environment
swagger version: 0.30.5
go version: 1.21.5
OS: Ubuntu 22.04.3
The text was updated successfully, but these errors were encountered: