Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bundle path as a substitution variable

Đang mở
#5,890 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách lần theo cách các phép thay thế hiện có như bundle.name và bundle.uuid được phân giải, sau đó kiểm tra cách CLI xác định thư mục chứa databricks.yml. Công việc được hoàn thành khi bundle.path được mở rộng thành đường dẫn tuyệt đối đến thư mục bundle đó, với các bài kiểm thử bao quát phép thay thế.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
404
Fork
246
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
225

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của databricks/cli

Tất cả issue của databricks/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.