Text file
src/cmd/go/testdata/script/build_git_sha256_go_get_branch.txt
1 [short] skip
2 [!git] skip
3
4 env GOPRIVATE=vcs-test.golang.org
5
6 go get vcs-test.golang.org/go/mod/gitrepo-sha256@basic_module
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
View as plain text