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

Add a flag to force schema regeneration despite the dependency cache

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

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

評価

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

調査の方向性

dependency update-cache コマンドから開始し、schemas/.lock.json に記録されたダイジェストによって依存関係スキーマの再生成がスキップされる箇所を追跡してください。ロックファイルを削除せずにすべての依存関係スキーマを再生成できるよう、要求された force 動作を追加し、プロジェクト独自の生成済みスキーマには影響がないことを確認してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement
What problem are you facing?

crossplane dependency update-cache skips regenerating schemas for any dependency whose recorded digest in schemas/.lock.json is unchanged. That's the right default, but it means there's no supported way to force regeneration when the dependency versions haven't changed.

I hit this after bumping my schema generator, which produced a different output style. My own XRD schemas picked up the new style on the next build because the project's own APIs are always regenerated, but my dependency schemas didn't, because their digests were unchanged. The two halves of my generated tree drifted apart and no flag would let me re-render the dependency half.

The only workaround I found is deleting schemas/.lock.json (or running clean-cache, which deletes the whole schemas directory) and regenerating. That works, but deleting state out from under the tool to trigger a rebuild is awkward, and clean-cache is heavier than needed since it also removes the project's own generated schemas.

How could Crossplane help solve your problem?

Add a flag to dependency update-cache to force regeneration despite the cache, e.g. --force. It would regenerate all dependency schemas regardless of whether their recorded digest is unchanged. This is useful any time the generators change rather than the dependency versions, where the digests are identical but the desired output differs.

主要言語
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 を短くまとめたダイジェスト。