aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/cache.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-07 16:39:38 +0900
committerOphestra <cat@gensokyo.uk>2026-07-07 16:39:38 +0900
commitc8e8651694415d497b0800319b2ddda361b7651f (patch)
tree08b93ae39b514848aca655b3c7a9320517233ee2 /cmd/mbf/cache.go
parentaa5d38981da1edf8f26ba175955f59b19fc3070f (diff)
cmd/mbf: shallow by default
This is going to be used most of the time, with --deep only useful for fetching bootstrap artifacts. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/cache.go')
-rw-r--r--cmd/mbf/cache.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go
index 71cef98b..20dbd855 100644
--- a/cmd/mbf/cache.go
+++ b/cmd/mbf/cache.go
@@ -28,6 +28,8 @@ type cache struct {
idle bool
// Unset [pkg.CSuppressInit].
verboseInit bool
+ // Unset [pkg.CExternShallow].
+ deep bool
// Loaded artifact of [rosa.QEMU].
qemu pkg.Artifact
@@ -57,6 +59,9 @@ func (cache *cache) open() (err error) {
if !cache.verboseInit {
flags |= pkg.CSuppressInit
}
+ if !cache.deep {
+ flags |= pkg.CExternShallow
+ }
done := make(chan struct{})
defer close(done)