Skip to content

cmd/go: list reports packages as stale immediately after their "go get" #23797

Closed
@siebenmann

Description

@siebenmann

What version of Go are you using (go version)?

go version devel +c52e27e68d Sun Feb 11 20:41:48 2018 +0000 linux/amd64

Does this issue reproduce with the latest release?

This doesn't happen on Go 1.9.4.

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOOS="linux"

What did you do?

Here is a simple reproduction, showing a just fetched and built command package being reported as stale due to a stale dependency.

$ export GOPATH=/tmp/gp
$ mkdir $GOPATH
$ go get mvdan.cc/sh/cmd/shfmt
$ go list -f '{{.ImportPath}} - {{.Stale}} - {{.StaleReason}}' mvdan.cc/sh/cmd/shfmt
mvdan.cc/sh/cmd/shfmt - true - stale dependency: mvdan.cc/sh/fileutil

This appears to happen for anything that has dependencies outside of the core packages, including dependencies to golang.org/x packages.

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.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions