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

     1  [short] skip
     2  [!git] skip
     3  
     4  env GOPRIVATE=vcs-test.golang.org
     5  
     6  go mod tidy
     7  stderr 'downloading vcs-test\.golang.org/go/mod/gitrepo-sha256 v1.3.0'
     8  
     9  go run .
    10  stdout '1234'
    11  
    12  -- main.go --
    13  package main
    14  
    15  import (
    16  	"fmt"
    17  
    18  	sha256repo "vcs-test.golang.org/go/mod/gitrepo-sha256"
    19  )
    20  
    21  func main() {
    22  	fmt.Println(sha256repo.Foobar(1234))
    23  }
    24  
    25  -- go.mod --
    26  module test
    27  
    28  go 1.24.3
    29  
    30  require vcs-test.golang.org/go/mod/gitrepo-sha256 v1.3.0
    31  

View as plain text