From 83df88eea40ca4033d19a98fe899e463fc1b62f5 Mon Sep 17 00:00:00 2001 From: William Batista Date: Wed, 28 Aug 2024 18:17:34 -0400 Subject: [PATCH] rename flag for builder cache size --- internal/build/imgsrc/resolver.go | 2 +- internal/flag/flag.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/build/imgsrc/resolver.go b/internal/build/imgsrc/resolver.go index a8b5478df0..cefacc3d00 100644 --- a/internal/build/imgsrc/resolver.go +++ b/internal/build/imgsrc/resolver.go @@ -242,7 +242,7 @@ func (r *Resolver) BuildImage(ctx context.Context, streams *iostreams.IOStreams, return nil, fmt.Errorf("invalid depot-scope value. must be 'org' or 'app'") } - builderSize := flag.GetInt(ctx, "depot-builder-size") + builderSize := flag.GetInt(ctx, "depot-build-cache-size") region := flag.GetString(ctx, "depot-builder-region") update := flag.GetBool(ctx, "depot-builder-update") diff --git a/internal/flag/flag.go b/internal/flag/flag.go index 719f1cd36a..33c2854696 100644 --- a/internal/flag/flag.go +++ b/internal/flag/flag.go @@ -568,9 +568,9 @@ func DepotScope() String { } } -func DepotBuilderSize() Int { +func DepotBuildCacheSize() Int { return Int{ - Name: "depot-builder-size", + Name: "depot-build-cache-size", Description: "The size of the Depot builder's cache in GB", Default: 50, }