Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow sync.paths to traverse outside of git folder

Aperta
#6,065 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia riproducendo il problema con il databricks.yml fornito e databricks bundle validate, confrontando un repository Git con una cartella che non è un repository Git. Traccia la gestione della validazione per sync.paths e la radice del repository; il lavoro è completato quando i percorsi al di fuori della radice Git vengono validati in modo coerente in entrambe le configurazioni, con una copertura di regressione per la configurazione segnalata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

DABs Enhancement
Describe the issue

When pointing a bundle's sync.paths field outside of the bundle root, and if that traverses outside of the git folder root, databricks bundle validate returns with an error Error: path <path-to-sync-path> is not within repository root "<path-to-git-folder>"

However, when pointing to a sync.paths folder that traverses outside of the bundle root when NOT in a git folder, it works as expected.

Configuration
# databricks.yml
bundle:
  name: sync-paths-root-test

sync:
  paths:
    - .
    - ../repo-sibling/
Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Create a databricks bundle in a git folder
  2. Create a databricks.yml in the root of the git folder and point sync.paths to a folder outside of the repo root
  3. Run databricks bundle validate and you will see the error output

Do the same steps but create the bundle in step #1 in a non-git folder. You will not get an error

Expected Behavior

I expect the bundle to validate even when sync.paths traverses outside the Git repository root.

This works when the bundle is located in a non-Git build directory and the bundle folder and dependency folder are siblings. In that pipeline setup, databricks bundle validate succeeds.

However, local validation fails when sync.paths references files outside the Git repository root.

We maintain shared helper scripts in a separate repository from our DABs projects. Based on the documentation, sync.paths should allow those scripts to be included in the bundle deployment. The behavior appears inconsistent depending on whether the bundle is validated inside a Git repository.

Actual Behavior

i receive an error Error: path <path-to-sync-path> is not within repository root "<path-to-git-folder>"

OS and CLI version

Databricks CLI: v1.9.0
OS: Ubuntu 24.04/25.04, Windows 11

Is this a regression?

No

Lingua principale
Go
Stelle
403
Fork
244
Merge medio
1g 13h
PR unite (30g)
263

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di databricks/cli

Tutte le issue di databricks/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.