From 55226ecedcdd1b609918fc677fb0fd0049e417fb Mon Sep 17 00:00:00 2001 From: simonfaltum Date: Tue, 9 Jun 2026 22:32:40 +0200 Subject: [PATCH] Fix swapped tag/branch flag bindings in bundle init The --tag flag was bound to the branch variable and --branch to the tag variable. Behavior is unchanged today because both collapse into a single git ref in the template resolver, but the crossed bindings would break any future code that distinguishes tags from branches. Co-authored-by: Isaac --- cmd/bundle/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bundle/init.go b/cmd/bundle/init.go index 8b6ce633a8c..dc0604aa9a4 100644 --- a/cmd/bundle/init.go +++ b/cmd/bundle/init.go @@ -42,8 +42,8 @@ See https://docs.databricks.com/en/dev-tools/bundles/templates.html for more inf cmd.Flags().StringVar(&configFile, "config-file", "", "JSON file containing key value pairs of input parameters required for template initialization.") cmd.Flags().StringVar(&templateDir, "template-dir", "", "Directory path within a Git repository containing the template.") cmd.Flags().StringVar(&outputDir, "output-dir", "", "Directory to write the initialized template to.") - cmd.Flags().StringVar(&branch, "tag", "", "Git tag to use for template initialization") - cmd.Flags().StringVar(&tag, "branch", "", "Git branch to use for template initialization") + cmd.Flags().StringVar(&tag, "tag", "", "Git tag to use for template initialization") + cmd.Flags().StringVar(&branch, "branch", "", "Git branch to use for template initialization") cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) error {