Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`crossplane dependency update-cache` does not add XRD types into `schemas/` (inconsistent with `crossplane project build`)

オープン
#215 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

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 の本文から書いたものです。

説明

bug
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?
  1. crossplane project init my-project
  2. Add dependencies to crossplane-project.yaml
  3. Add an XRD definition to apis/
  4. crossplane dependency update-cache
  5. Inspect schemas/ — the lock file does not contain the fs://apis key, and no schemas were generated for it
  6. crossplane project build
  7. Inspect schemas/ again — the lock file now contains fs://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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crossplane/cli のほかの issue

crossplane/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。