`bundle init` fails on a symlinked directory inside a template's `template/`
メンテナーはふだん 1 日以内に返信
@TangoEnSkai がすでに取り組んでいます。
2026年8月27日 から。
評価
調査の方向性
bundle init のテンプレートウォーカーから始め、issue にあるコマンドを使って失敗を再現します。template/linked_dir がどのように分類され、出力ディレクトリがどのように作成されるかを追跡し、ディレクトリ symlink についてサポートする動作を選択して文書化します。完了の条件は、初期化で内部読み取りエラーが報告されなくなり、誤解を招く不完全な結果が残されなくなること、そしてディレクトリ symlink とファイル symlink のカバレッジがあることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
A template whose template/ tree contains a symlink to a directory fails to initialize. Symlinks to files work fine. The error comes from the template walker reading the link as a regular file.
Reproduction
mkdir -p tpl/template/shared out
cat > tpl/databricks_template_schema.json <<'JSON'
{"properties": {"name": {"type": "string", "default": "x", "description": "a name"}}}
JSON
echo 'hello' > tpl/template/shared/file.txt.tmpl
ln -s shared tpl/template/linked_dir
databricks bundle init ./tpl --config-file <(echo '{"name":"x"}') --output-dir out
Actual
Error: read /path/to/tpl/template/linked_dir: is a directory
It also leaves a partial result behind: out/linked_dir is created as an empty directory before the failure.
Expected
Either the walker follows the symlink and renders the directory's contents, or it reports that symlinked directories are unsupported in templates. The current message describes an internal read failure rather than the unsupported construct, which makes it hard to act on.
Control: file symlinks work
Replacing the directory symlink with a file symlink succeeds:
rm tpl/template/linked_dir
ln -s shared/file.txt.tmpl tpl/template/linked_file.txt.tmpl
databricks bundle init ./tpl --config-file <(echo '{"name":"x"}') --output-dir out
# ✨ Successfully initialized template
# out/linked_file.txt, out/shared/file.txt
Why it matters
template_dir resolves exactly one hop and replaces a template's local template/ rather than overlaying it, so a template that points at a shared tree cannot also contribute files of its own. Symlinks are the natural way to share machinery between sibling templates while each keeps its own content. File-level symlinks make that work, but because directory symlinks don't, a nested output path has to be recreated in every template and every shared leaf file linked individually.
Worth noting that the surrounding platform handles symlinked directories fine: Databricks Git folders materialize them as SYMLINK objects, and the /Workspace FUSE mount resolves them including directory traversal. The limitation is specific to the template walker.
Environment
- Databricks CLI v1.13.0
- macOS (darwin), also relevant on the Linux driver via
/Workspace
- 主要言語
- Go
- スター
- 404
- フォーク
- 246
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 225
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/cli のほかの issue
-
Apps commands only accept relative path to app.yml対応中かも @yuri-rod が 8 日前に担当しました。 オープンCLI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
databricks/cli#6910 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
databricks/cli#6670 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
databricks/cli#7013 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
databricks/cli#7002 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
databricks/cli#6986 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
darwin zsh
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
carapace-sh/carapace-bin#3846 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
golang-app/ecommerce#179 ·
メンテナーはふだん 1 日以内に返信
-
Simulator process crashes (nil pointer panic) when the dataset returns an error対応中かも @EugeneVon が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
llm-d/llm-d-inference-sim#772 ·
メンテナーはふだん 1 日以内に返信
-
refactor: decode numchildren with a lenient int type instead of a hand-written xProp.UnmarshalXMLオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crazy-goat/xdbg#125 ·
メンテナーはふだん 1 日以内に返信
-
150 points ci complexity:medium drips-wave help wanted medium
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sorotrail/SoroBeacon#449 ·
メンテナーはふだん 1 日以内に返信