...

Text file src/cmd/go/testdata/script/mod_get_pseudo_hg_latest_incompatible.txt

Documentation: cmd/go/testdata/script

     1[!exec:hg] skip
     2[short] skip
     3
     4# Testing hg->module converter's generation of +incompatible tags; turn off proxy.
     5env GOPROXY=direct
     6env GOSUMDB=off
     7
     8# get should include incompatible tags in "latest" calculation.
     9go mod edit -droprequire vcs-test.golang.org/hg/legacytest.hg
    10go get vcs-test.golang.org/hg/legacytest.hg@latest
    11go list
    12go list -m all
    13stdout '^vcs-test.golang.org/hg/legacytest.hg v2\.0\.0\+incompatible$'
    14
    15-- go.mod --
    16module x
    17
    18require vcs-test.golang.org/hg/legacytest.hg v1.0.0
    19-- x.go --
    20package x
    21import "vcs-test.golang.org/hg/legacytest.hg"

View as plain text