Skip to content

cmd/go: get must report implied upgrades/downgrades #25917

Closed
@bcmills

Description

@bcmills

This is a followup to a golang-nuts thread.

I can import an arbitrary version of the module github.com/docker/docker (which lacks a go.mod file at all tagged versions in its repo) by specifying the version in the go.mod file. However, at least as of vgo 0a6cdd7, I can't obtain the same version using vgo get on one of the packages it contains.

/tmp/importdocker$ cat go.mod
module github.com/bcmills/importdocker

require github.com/docker/docker v1.13.1


/tmp/importdocker$ cat main.go
package main

import _ "github.com/docker/docker/client"

func main() {}


/tmp/importdocker$ vgo list -m | grep docker/docker
github.com/docker/docker                          v1.13.1
github.com/docker/docker-credential-helpers       v0.0.0-20160906164316-f72c04f1d8e7

/tmp/importdocker$ vgo get github.com/docker/docker/client@v17.05.0-ce
vgo: finding github.com/docker/docker/client v0.0.0-20170504205632-89658bed64c2
vgo: github.com/docker/docker/client v0.0.0-20170504205632-89658bed64c2: missing go.mod
vgo get: missing go.mod

/tmp/importdocker$ sed -i 's/v1.13.1/v17.05.0-ce/' go.mod

/tmp/importdocker$ vgo list -m | grep docker/docker
github.com/docker/docker                          v0.0.0-20170504205632-89658bed64c2
github.com/docker/docker-credential-helpers       v0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions