Comments (5)
OK so it looks like this was probably us updating the README a little earlier than needed, folks still should've been able to install with:
% go install github.com/deepmap/oapi-codegen/v2/cmd/[email protected]
# or
% go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest
And then when we were ready to ship the next release, it'd be
% go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
The issue here is that there was no tagged release for the github.com/oapi-codegen/oapi-codegen/
module, so explicitly trying to install that failed.
I've updated what was meant to be the v2.3.0 release to now be v2.4.0
from oapi-codegen.
I guess that the redirect doesn't work quite as expected, and we need to tag it with a new tag, since I committed the go.mod changes. Can you try it with the latest commit and see if it works for you first?
from oapi-codegen.
Yeah, we need a new tag. This worked for me: # go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@0f67d9a
@jamietanna , I'll make a new release, 2.3.0 after I update the readme.
from oapi-codegen.
latest doesnt work but main does. i see that the tagged 2.2.0 version still has deepmap in go.mod
$ docker run --rm -it golang:1.22
root@c72b82581b93:/go# go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
go: downloading github.com/oapi-codegen/oapi-codegen v1.16.3
go: downloading github.com/oapi-codegen/oapi-codegen/v2 v2.2.0
go: github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest: version constraints conflict:
github.com/oapi-codegen/oapi-codegen/[email protected]: parsing go.mod:
module declares its path as: github.com/deepmap/oapi-codegen/v2
but was required as: github.com/oapi-codegen/oapi-codegen/v2
root@c72b82581b93:/go#
root@c72b82581b93:/go# go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@main
go: downloading github.com/oapi-codegen/oapi-codegen v0.0.0-20240412085346-d18224f3b7ca
go: downloading github.com/oapi-codegen/oapi-codegen/v2 v2.2.1-0.20240606151511-0f67d9a354bc
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/getkin/kin-openapi v0.124.0
go: downloading golang.org/x/text v0.15.0
go: downloading golang.org/x/tools v0.21.0
go: downloading github.com/go-openapi/jsonpointer v0.20.2
go: downloading github.com/invopop/yaml v0.2.0
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/perimeterx/marshmallow v1.1.5
go: downloading github.com/go-openapi/swag v0.22.8
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/mod v0.17.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/josharian/intern v1.0.0
from oapi-codegen.
Please use v2.3.0
. I pushed it and tested that it works.
from oapi-codegen.
Related Issues (20)
- Enum constants not prefixed with type name
- chore(tests): add better coverage of `mergeOpenapiSchemas`
- Make possible use values other than strings as discriminator
- requestBody with oneOf does not generate marshal/unmarshal union data
- Bug: Header parameter parsing with fiber generator
- Generating Struct with Embedded Imported Type
- swaggerSpec updated even when no spec changes HOT 1
- field std-http-server not found in type codegen.GenerateOptions HOT 2
- docs: warn when using `std-http-server` but /not/ using Go 1.22 HOT 4
- Config to generate server interface only HOT 2
- Support two dimensional query parameters
- docs(examples): how to use context keys with middleware HOT 1
- feat: make enum union/intersection generation more configurable
- chore: bump minimum Go version
- Unexported fields not working anymore since v2.2.0 HOT 8
- Support multiple authentication schemes for a single endpoint HOT 6
- response during file download error HOT 1
- From and To paths are the same
- feat: Server/Global prefix/suffix cli option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oapi-codegen.