Skip to content

Warning if using ${workspace.root_path} in configuration file #1904

Description

@alex7c4

Describe the issue

Hi team! First of all, thanks for an awesome product!

If I create Databricks bundle configuration file with ${workspace.root_path} for some path I got a warning:

Warning: substring "/Workspace${workspace.root_path}" found in "/Workspace${workspace.root_path}". Please update this to "${workspace.root_path}".

during validation, but I am using only recommended syntax.

Configuration

databricks.yml:

bundle:
name: some_namedatabricks_cli_version: ">= 0.234.0"workspace:
file_path: ${workspace.root_path}targets:
personal:
default: truemode: developmentworkspace:
root_path: ~/${bundle.name}
$ databricks bundle validate
Warning: substring "/Workspace${workspace.root_path}" found in "/Workspace${workspace.root_path}". Please update this to "${workspace.root_path}".
at workspace.file_path
in databricks.yml:2:1
For more information, please refer to: https://docs.databricks.com/en/release-notes/dev-tools/bundles.html#workspace-paths
Name: some_name
Target: personal
Workspace:
User: a....@....com
Path: /Workspace/Users/...user.../some_name
Found 1 warning

Steps to reproduce the behavior

  1. Create databricks.yml with file_path: ${workspace.root_path} in it.
  2. Run databricks bundle validate
  3. See warning

Expected Behavior

No warning.

Actual Behavior

Got warning: Warning: substring "/Workspace${workspace.root_path}" found in "/Workspace${workspace.root_path}"

OS and CLI version

$ databricks -v Databricks CLI v0.234.0
$ sw_vers
ProductName: macOS
ProductVersion: 15.1
BuildVersion: 24B83

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingDABsDABs related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions