databricks / cli

Databricks CLI
Other
115 stars 40 forks source link

Databricks CLI error with version 0.222.0 #1544

Closed erkan-aiml closed 1 day ago

erkan-aiml commented 6 days ago

Databricks CLI return the following error with version 0.222.0 from a GitHub workflow The same setup and command works with version 0.221.1

Command: databricks bundle deploy --target dev --var="var_name=var_value"

Error:

panic: reflect: call of reflect.Value.Set on zero Value

goroutine 1 [running]:
reflect.flag.mustBeExportedSlow(..)
    reflect/value.go:247 ..
reflect.flag.mustBeExported(...)
    reflect/value.go:241
reflect.Value.Set({..})
    reflect/value.go:2255 ..
github.com/databricks/cli/libs/dyn/convert.toTypedInterface( ...})
    github.com/databricks/cli/libs/dyn/convert/to_typed.go:285 ..
github.com/databricks/cli/libs/dyn/convert.ToTyped({..})
    github.com/databricks/cli/libs/dyn/convert/to_typed.go:50 ..
pietern commented 2 days ago

Thanks for reporting. Do you happen to have a (default) value configured for this variable in your bundle definition?

erkan-aiml commented 2 days ago

Thanks for reporting. Do you happen to have a (default) value configured for this variable in your bundle definition?

Thanks for looking at this, Pieter. Yes, there is a default value but set as empty. Note that this works when I switch to version 0.221.1.

andrewnester commented 1 day ago

Thanks for reporting the issue! The fix has been merged and will be released in the upcoming release this week