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

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

View as plain text