Skip to content

bundle path as a substitution variable #5890

Description

@mniehoff

Describe the issue

We have multiple bundles in one repository, sharing some common resources in the repo root, which we include into the databricks.yml of the bundles.

The common resources also include the artifacts, which use a script to download additional wheels into the dist directory of the bundle. Therefore we need the path to the bundle. Currently we use a variable "bundle_path" in each of those bundles and reference it in the common script. but this is brittle, e.g. when the path/directory changes.

Expected Behavior

A substitution like bundle.path (next to bundle.name, bundle.uuid) would be really helpful. This variable should contain the full, absolute path to the bundle (=directory containing the databricks.yml).

Additionally, bundle.cwd would be a nice to have, pointing to the current working dir (the folder the databricks bundle command was executed). But more important for us would be bundle.path.

Actual Behavior

Need to specify a manual variable (of course this variable could also be filled when executing bundle commands, but its easy to forget.

OS and CLI version

CLI Version 1.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DABsDABs related issuesEnhancementNew feature or requestStale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions