`crossplane dependency update-cache` does not add XRD types into `schemas/` (inconsistent with `crossplane project build`)
まだ誰も着手していません。
評価
調査の方向性
crossplane project init、apis/ 配下の XRD、および crossplane dependency update-cache を使って問題を再現します。schemas/.lock.json と生成された schemas を調査します。fs://apis エントリを追加する crossplane project build と結果を比較します。update-cache が XRD schemas を含め、完全な build を必要とせずに lock ファイルを更新すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened?
After running crossplane dependency update-cache, schemas/.lock.json does not include entries for XRD schemas defined under apis/. Only running crossplane project build updates the lock file and adds a fs://apis key with the generated schemas.
This makes the two commands inconsistent: one partially updates the cache/lock file, the other fully updates it. In practice this breaks the local dev loop — since update-cache doesn't pick up XRD changes, a full project build is required after every schema edit just to regenerate the schemas needed to keep developing a function.
I expected update-cache to update the lock file and the schema types consistently, including XRD schema entries, without requiring a full build.
How can we reproduce it?
crossplane project init my-project- Add dependencies to
crossplane-project.yaml - Add an XRD definition to
apis/ crossplane dependency update-cache- Inspect
schemas/— the lock file does not contain thefs://apiskey, and no schemas were generated for it crossplane project build- Inspect
schemas/again — the lock file now containsfs://apis, and the schemas have been generated
What environment did it happen in?
- Crossplane CLI version: 2.4.0
- Platform: linux/amd64
- 主要言語
- Go
- スター
- 19
- フォーク
- 31
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 53
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crossplane/cli のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crossplane/cli#282 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
crossplane/cli#384 ·
-
crossplane/cli#379 · 担当者 1 名 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
crossplane/cli#370 · リアクション 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
crossplane/cli#369 ·
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Bob Shell support オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
santhosh-tekuri/jsonschema#276 ·