Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 6460e2b

Browse files
committed
language - {fallback => default} for cachedir
1 parent 5a7e5e6 commit 6460e2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/dep/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (c *Config) Run() int {
182182
}
183183

184184
// Cachedir is loaded from env if present. `$GOPATH/pkg/dep` is used as the
185-
// fallback cache location.
185+
// default cache location.
186186
cachedir := getEnv(c.Env, "DEPCACHEDIR")
187187
if cachedir != "" {
188188
if err := fs.EnsureDir(cachedir, 0777); err != nil {

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func defaultGOPATH() string {
9090
func (c *Ctx) SourceManager() (*gps.SourceMgr, error) {
9191
cachedir := c.Cachedir
9292
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`.
9494
cachedir = filepath.Join(c.GOPATH, "pkg", "dep")
9595
}
9696

context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func TestDepCachedir(t *testing.T) {
491491
defer h.Cleanup()
492492

493493
h.TempDir("cache")
494-
// Create the directory for fallback cachedir location.
494+
// Create the directory for default cachedir location.
495495
h.TempDir(filepath.Join("go", "pkg", "dep"))
496496

497497
testCachedir := h.Path("cache")

0 commit comments

Comments
 (0)