File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,26 +63,26 @@ Go toolchain expects to talk to the plugin.
63
63
### Running a Module Proxy
64
64
65
65
To enable a caching module proxy, use the ` --modproxy ` flag to ` serve ` . The
66
- module proxy uses HTTP, not the plugin interface:
66
+ module proxy uses HTTP, not the plugin interface, use ` --http ` to set the address :
67
67
68
68
``` sh
69
69
go-cache-plugin serve \
70
70
--socket=/tmp/gocache.sock \
71
- --modproxy =localhost:5970 \
71
+ --http =localhost:5970 --modproxy \
72
72
--cache-dir=/tmp/gocache \
73
73
# ... other flags
74
74
```
75
75
76
76
To tell the Go toolchain about the proxy, set:
77
77
78
78
``` sh
79
- export GOPROXY=http://localhost:5970 # use the --modproxy address
79
+ export GOPROXY=http://localhost:5970/mod # use the --http address
80
80
```
81
81
82
82
If you want to also proxy queries to ` sum.golang.org ` , also add:
83
83
84
84
``` sh
85
- export GOSUMDB=' sum.golang.org http://locahost:5970/sumdb/sum.golang.org'
85
+ export GOSUMDB=' sum.golang.org http://locahost:5970/mod/ sumdb/sum.golang.org'
86
86
```
87
87
88
88
## References
You can’t perform that action at this time.
0 commit comments