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