This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ func (c *Config) Run() int {
182
182
}
183
183
184
184
// Cachedir is loaded from env if present. `$GOPATH/pkg/dep` is used as the
185
- // fallback cache location.
185
+ // default cache location.
186
186
cachedir := getEnv (c .Env , "DEPCACHEDIR" )
187
187
if cachedir != "" {
188
188
if err := fs .EnsureDir (cachedir , 0777 ); err != nil {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func defaultGOPATH() string {
90
90
func (c * Ctx ) SourceManager () (* gps.SourceMgr , error ) {
91
91
cachedir := c .Cachedir
92
92
if cachedir == "" {
93
- // When `DEPCACHEDIR` isn't set in the env, fallback to `$GOPATH/pkg/dep`.
93
+ // When `DEPCACHEDIR` isn't set in the env, use the default - `$GOPATH/pkg/dep`.
94
94
cachedir = filepath .Join (c .GOPATH , "pkg" , "dep" )
95
95
}
96
96
Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ func TestDepCachedir(t *testing.T) {
491
491
defer h .Cleanup ()
492
492
493
493
h .TempDir ("cache" )
494
- // Create the directory for fallback cachedir location.
494
+ // Create the directory for default cachedir location.
495
495
h .TempDir (filepath .Join ("go" , "pkg" , "dep" ))
496
496
497
497
testCachedir := h .Path ("cache" )
You can’t perform that action at this time.
0 commit comments