Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

bundle path as a substitution variable

Offen
#5,890 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
cli

Rechercherichtung

Beginne damit nachzuverfolgen, wie bestehende Substitutionen wie bundle.name und bundle.uuid aufgelöst werden, und untersuche anschließend, wie die CLI das Verzeichnis bestimmt, das databricks.yml enthält. Erledigt ist die Aufgabe, wenn bundle.path zu diesem Bundle-Verzeichnis als absoluter Pfad expandiert wird und Tests die Substitution abdecken.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

DABs Enhancement
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

Vorherrschende Sprache
Go
Sterne
405
Forks
250
Ø Merge
1 T. 11 Std.
Gemergte PRs (30 T.)
236

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus databricks/cli

Alle Issues in databricks/cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.