missing Post-initialization hooks for init commands
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- python
研究方向
先查看連結的 Python composition-function 指南,並重現其中記載的 crossplane xpkg init 命令。檢查產生的 package/crossplane.yaml,並根據 issue 和 Crossplane issue #4941 確定初始化後的預期行為。當初始化不再讓範本套件名稱維持不變,或文件清楚反映受支援的行為時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Python
- 星號
- 21
- 分支
- 13
- 平均合併
- 17 小時 53 分鐘
- 30 天內合併 PR
- 3
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
crossplane/function-template-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
-
enhancement
難度 3/5 1-2 天 新手友好度 55/100
-
難度 1/5 1 小時以內 新手友好度 10/100
查看 crossplane/function-template-python 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
sublimehq/package_control#1780 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·