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

     1  # Test adding sums to go.work.sum when sum isn't in go.mod.
     2  
     3  go run .
     4  cmp go.work.sum want.sum
     5  
     6  -- want.sum --
     7  golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:pvCbr/wm8HzDD3fVywevekufpn6tCGPY3spdHeZJEsw=
     8  golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
     9  rsc.io/quote v1.5.2 h1:3fEykkD9k7lYzXqCYrwGAf7iNhbk4yCjHmKBN9td4L0=
    10  rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
    11  -- go.work --
    12  go 1.18
    13  
    14  use .
    15  -- go.mod --
    16  go 1.18
    17  
    18  module example.com/hi
    19  
    20  require "rsc.io/quote" v1.5.2
    21  -- go.sum --
    22  rsc.io/sampler v1.3.0 h1:HLGR/BgEtI3r0uymSP/nl2uPLsUnNJX8toRyhfpBTII=
    23  rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
    24  -- main.go --
    25  package main
    26  
    27  import (
    28  	"fmt"
    29  	"rsc.io/quote"
    30  )
    31  
    32  func main() {
    33  	fmt.Println(quote.Hello())
    34  }

View as plain text