dapr / dapr/java-sdk

Building the SDK will use cached protobuf definitions (if present) even in a clean checkout / build

オープン
#792 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
kind/bug
主要言語
Java
スター
300
フォーク
230
平均マージ
5日 1時間
マージ済み PR(30日)
5

説明

## Expected Behavior

`git clone git@github.com:dapr/java-sdk.git && cd java-sdk && mvn package` should work out of the box, but it doesn't if you
have previously build the Java SDK with a different set of protobuf definitions. They instead get cached in `$HOME/.m2/repository/.cache/...` and the failure is non-obvious until you hunt around for docs on Maven's `wget` plugin.

## Actual Behavior

Build fails (iff the new code depends on protobuf definitions different than those you have in your cache).

## Steps to Reproduce the Problem

Have a set of protobuf files cached from a previous Java SDK build that differ from the ones required, then try building a clean clone -- it will fail.

## Release Note

RELEASE NOTE:

**FIX** Skip caching protobuf definition files to make `mvn clean` behave more as one would expect.

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

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

調査の方向性

`mvn package` と `mvn clean` で使用される Maven ビルド設定から始め、protobuf 定義ファイルが `$HOME/.m2/repository/.cache/...` にダウンロードされる仕組みを追跡します。以前にキャッシュされた protobuf 定義を使用せずにクリーンなクローンをビルドでき、異なる定義で再ビルドした後に動作が検証されれば完了です。

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

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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