missing Post-initialization hooks for init commands
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- cli, developer-experience, tooling
Hướng nghiên cứu
Bắt đầu bằng cách xem lại hướng dẫn Python composition-function được liên kết và tái hiện lệnh crossplane xpkg init được ghi trong tài liệu. Kiểm tra package/crossplane.yaml được tạo ra và xác định hành vi dự kiến sau khi khởi tạo dựa trên issue và Crossplane issue #4941. Được coi là hoàn tất khi quá trình khởi tạo không còn để nguyên tên package của template, hoặc tài liệu phản ánh rõ hành vi được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What problem are you facing?
as per the docs: https://docs.crossplane.io/latest/guides/write-a-composition-function-in-python/
and the tip, which I quote:
In v1.14 of the Crossplane CLI crossplane xpkg init just clones a template GitHub repository. A future CLI release will automate tasks like replacing the template name with the new function’s name. See Crossplane issue #4941 for details.
It would be ideal if this repo would provide scaffolding mechanism so that developers don't need to manually change parameters (package’s name is one) after the templated repo has been cloned.
Alternatively if this has been fixed already I guess the tip need to be removed from the docs and it should work via cli as I am using
ζ crossplane version
Client Version: v1.17.1
Server Version: v1.17.1-up.1
and it doesn't work when creating a new function command:
ζ crossplane xpkg init function-pop https://github.com/crossplane/function-template-python -d function-pop
Initialized package "function-pop" in directory "/Users/huh/Documents/sandbox/crossplane/function-pop" from https://github.com/crossplane/function-template-python/tree/88ae9b958787096fc72415217807ad4cf6515ec6 (main)
ζ cat function-pop/package/crossplane.yaml
---
apiVersion: meta.pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: function-template-python
spec: {}
How could this Function help solve your problem?
To improve developer experience and eventually prevent people from falling in a rabbit hole as the documentation link points at an issue that has been seemingly been solved but no clear resolution can be deducted from that
- Ngôn ngữ chính
- Python
- Star
- 21
- Fork
- 13
- Merge trung bình
- 17 giờ 53 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của crossplane/function-template-python
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Leverage standard CLI options Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Dependency Dashboard Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 10/100
Tất cả issue của crossplane/function-template-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
learningequality/ricecooker#747 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
run-llama/llama_index#23199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
KhronosGroup/glTF-Blender-IO#2769 ·