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

     1  # For this test module there are three versions:
     2  #   * v0.1.1-0.20190429073117-b5426c86b553
     3  #   * v0.1.0
     4  #   * v0.0.0-20190430073000-30950c05d534
     5  # Only v0.1.0 is tagged.
     6  #
     7  # The v0.1.1 pseudo-version is semantically higher than the latest tag.
     8  # The v0.0.0 pseudo-version is chronologically newer.
     9  
    10  # The latest pseudo-version is semantically higher than the latest tag.
    11  # 'list -u' should not suggest a lower version as an upgrade.
    12  
    13  go get example.com/pseudoupgrade@b5426c8
    14  go list -m -u all
    15  stdout '^example.com/pseudoupgrade v0.1.1-0.20190429073117-b5426c86b553$'
    16  
    17  go get example.com/pseudoupgrade@v0.0.0-20190430073000-30950c05d534
    18  go list -m -u all
    19  stdout '^example.com/pseudoupgrade v0.0.0-20190430073000-30950c05d534$'
    20  
    21  -- go.mod --
    22  module x
    23  
    24  go 1.12
    25  

View as plain text