Allow sync.paths to traverse outside of git folder
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
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
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:
- Create a databricks bundle in a git folder
- Create a databricks.yml in the root of the git folder and point sync.paths to a folder outside of the repo root
- Run
databricks bundle validateand 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di databricks/cli
-
CLI
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
databricks/cli#6910 ·
I maintainer di solito rispondono entro 1 giorno
-
DABs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
databricks/cli#6670 ·
I maintainer di solito rispondono entro 1 giorno
-
DABs PyDABs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
databricks/cli#3926 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
DABs
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
databricks/cli#6901 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
databricks/cli#6786 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di databricks/cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pulumi/pulumi-terraform#1215 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-acceptance wg/developer-experience-ecosystem
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
vllm-project/semantic-router#4480 ·
I maintainer di solito rispondono entro 1 giorno
-
area/docs kind/documentation priority/backlog triage/accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
lexfrei/cloudflare-tunnel-gateway-controller#943 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
keyxmakerx/Chronicle#967 ·
I maintainer di solito rispondono entro 1 giorno