Skip to content

go.mod file does not work with vgo #152

Closed

Description

@zombiezen

Because gorilla's securecookie and context have malformed semantic version tags (see golang/go#24476), running vgo get github.com/gorilla/sessions fails with 404s for 1.1.0 on both dependencies.

Activity

  1. kisielk commented on Apr 24, 2018

    @kisielk
    Contributor

    I guess we could tag v1.1.1 of both of those projects to fix this

  2. zombiezen commented on Apr 24, 2018

    @zombiezen
    Author

    That would work. securecookie already has one; context is the only one that needs it. Then go.mod in sessions would need to be bumped to 1.1.1 for both of them.

  3. markbates commented on May 14, 2018

    @markbates

    I'm also getting this issue. It would be great to get a new tag out there for everything. I'm trying to get vgo to build gobuffalo/buffalo and this is my current roadblock. Thanks in advance.

  4. elithrar commented on May 14, 2018

    @elithrar
    Contributor

    @markbates Let me look at this today.

  5. added a commit that references this issue on May 14, 2018
    9a62424
  6. self-assigned this
    on May 14, 2018
  7. added a commit that references this issue on May 14, 2018
    9ee0d62
  8. elithrar commented on May 14, 2018

    @elithrar
    Contributor

    Fixed!

    Before:

    ➜  ~/.go/src/github.com/gorilla/sessions (master) ✔  vgo build
    vgo: errors parsing go.mod:
    /Users/matt/.go/src/github.com/gorilla/sessions/go.mod:4: invalid module version "v1.1": unknown revision "v1.1.0"
    /Users/matt/.go/src/github.com/gorilla/sessions/go.mod:5: invalid module version "v1.1": unknown revision "v1.1.0"
    

    After:

    ➜  ~/.go/src/github.com/gorilla/sessions (master) ✔  git pull
    remote: Counting objects: 1, done.
    remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
    Unpacking objects: 100% (1/1), done.
    From https://github.com/gorilla/sessions
       a2f2a3d..9ee0d62  master     -> origin/master
    Updating a2f2a3d..9ee0d62
    Fast-forward
     go.mod | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    ➜  ~/.go/src/github.com/gorilla/sessions (master) ✔  vgo build
    vgo: finding github.com/gorilla/securecookie v1.1.1
    vgo: finding github.com/gorilla/context v1.1.1
    vgo: downloading github.com/gorilla/context v1.1.1
    vgo: downloading github.com/gorilla/securecookie v1.1.1
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions