example application does not work with local SDK as documented
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java
研究方向
先查看範例 README 及其範例 build.gradle,然後執行 make 以重現循環的 Gradle 工作依賴。檢查文件中說明的本機 SDK 設定是否可以在 publishToMavenLocal 之後使用 mavenLocal,並更新範例或文件,使範例能夠使用未發布的 SDK 成功建置。
由索引模型根據 Issue 內容生成。
描述
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have upgraded to the latest version of OpenFGA and the issue still persists.
- I have searched the Slack community and have not found a suitable solution or answer.
- I agree to the terms within the OpenFGA Code of Conduct.
Description
When following the documentation to run the example with a local version of the SDK, an error occurs when running make.
Expectation
It should be possible to run the example with a local unpublished version of the SDK
Reproduction
Update the example build.gradle as shown in the example README:
dependencies {
// implementation("dev.openfga:openfga-sdk:0.4.+")
implementation project(path: ':')
// ...etc
}
Run make, and observe the error:
FAILURE: Build failed with an exception.
* What went wrong:
Circular dependency between the following tasks:
:classes
\--- :compileJava
+--- :compileKotlin
| \--- :jar
| +--- :classes (*)
| +--- :compileJava (*)
| \--- :compileKotlin (*)
\--- :jar (*)
I don't know that trying to reference the SDK project is possible given that the repository is not organized as a gradle multi-project. I suspect the error is that the implementation project(path: ':') is adding a dependency to itself (: path is the project root). Even a hard-coded path will fail because the example project is not associated with the SDK project.
It may be easiest to update the documentation to advise to publish the SDK to the local maven repository, and then use the mavenLocal repository. e.g.,
./gradlew clean assemble publishToMavenLocal- update example to add
mavenLocal()to top of repositories
OpenFGA SDK version
0.4.1
OpenFGA version
latest
SDK Configuration
n/a
Logs
n/a
References
No response
- 主要語言
- Java
- 星號
- 55
- 分支
- 27
- 平均合併
- 4 小時 42 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
openfga/java-sdk 的其他 Issue
-
Bug: All telemetry attributes exported as strings instead of correct OTel types可能已有人在做 @nikekuma011 於 7 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 65/100
-
Per-request `additionalHeaders` don't take effect: `defaultHeaders` overwrite them, `Authorization` is sent twice, and `streamedListObjects` drops them可能已有人在做 @cvas22 於 2 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 65/100
-
Make client-credentials token refresh buffer and jitter configurable可能已有人在做 @dpkass 於 57 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 72/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 73/100
Julow/Unexpected-Keyboard#1490 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
Vakore/ZappierGames#275 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
unitycatalog/unitycatalog#2148 ·
維護者通常 2 天內回覆
-
enhancement priority: low
難度 1/5 1 小時以內 新手友好度 92/100
Riptide-Labs/riptide#1060 ·
維護者通常 1 天內回覆
-
bug key bindings source editor
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆