summaryrefslogtreecommitdiff
path: root/load.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-11-01 12:15:41 -0500
committerJeff Carr <[email protected]>2025-11-01 12:15:41 -0500
commit6fa3221e265933038342acb50caad3c2bbb6c136 (patch)
treebe67bef75b839221c6af324a755dc5bf29c81e5c /load.go
parent750a486170538b546d52f7e666b01ccf82fba653 (diff)
test making go.work filesHEADv0.0.197master
Diffstat (limited to 'load.go')
-rw-r--r--load.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/load.go b/load.go
index 283921d..38790bd 100644
--- a/load.go
+++ b/load.go
@@ -74,9 +74,11 @@ func (f *Forge) reposCacheLoad() error {
reposName = "homedir"
}
- // get the
+ // load in the repos.pb file
+ // setup the GO env settings
fullname := config.MakeCacheFilename("forge", reposName)
- if env.Get("cache") == "gowork" {
+ if env.True("GoWork") {
+ // if using a go.work file, the filename should have already been set
fullname = env.Get("ReposPB")
}
f.Repos = gitpb.NewRepos()