Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get latest version (v12.2.0) #25

Open
filippo-veneri opened this issue Jul 21, 2023 · 2 comments
Open

Cannot get latest version (v12.2.0) #25

filippo-veneri opened this issue Jul 21, 2023 · 2 comments
Assignees

Comments

@filippo-veneri
Copy link

Describe the bug
The latest version (v12.2.0 at the moment) is effectivly un-gettable.

To Reproduce
Steps to reproduce the behavior:

  1. go get github.com/iris-contrib/swagger/v12@master
    We get the following line in go.mod:
    require github.com/iris-contrib/swagger/v12 v12.2.0-alpha //wrong version

  2. go get github.com/iris-contrib/swagger/v12@v12.2.0
    We get this error:
    go: github.com/iris-contrib/swagger@v12.2.0: invalid version: module contains a go.mod file, so module path must match major version ("github.com/iris-contrib/swagger/v12")

Expected behavior
We should get the correct version in go.mod:
require github.com/iris-contrib/swagger/v12 v12.2.0

Desktop (please complete the following information):

  • OS: all majior [linux, windows, osx]

iris.Version

  • v12.2.1

Additional context
The problem is due to the fact that, in the master branch, the module declaration in go.mod lacks the v12 suffix.

@filippo-veneri filippo-veneri changed the title [BUG] Cannot get latest version (v12.2.0) Jul 21, 2023
@filippo-veneri
Copy link
Author

Duplicate of #16

@diablur
Copy link

diablur commented Aug 11, 2023

same problem,
we should change the 'module github.com/iris-contrib/swagger' to 'module github.com/iris-contrib/swagger/v12' in go.mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants