Giter Club home page Giter Club logo

Comments (5)

jamietanna avatar jamietanna commented on August 15, 2024 1

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.

mromaszewicz avatar mromaszewicz commented on August 15, 2024

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.

mromaszewicz avatar mromaszewicz commented on August 15, 2024

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.

osttra-j-sernbrant avatar osttra-j-sernbrant commented on August 15, 2024

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.

mromaszewicz avatar mromaszewicz commented on August 15, 2024

Please use v2.3.0. I pushed it and tested that it works.

from oapi-codegen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.