From 7c954d2ae60406ea836a314a833ba52aa74915ae Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Tue, 15 Oct 2024 20:23:11 +0000 Subject: [PATCH] fix:[#384] disallow updating built-in stacks - throw error if stack is built-in - add english translation for update built-in stack error --- cmd/stacks.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/stacks.go b/cmd/stacks.go index fc7a169e..12422034 100644 --- a/cmd/stacks.go +++ b/cmd/stacks.go @@ -407,6 +407,11 @@ func updateStack(cmd *cobra.Command, args []string) error { return error } + if stack.BuiltIn { + cmdr.Error.Println(apx.Trans("stacks.update.error.builtIn")) + os.Exit(126) + } + if base == "" { if !assumeYes { cmdr.Info.Printfln(apx.Trans("stacks.update.info.askBase"), stack.Base)