lambdaisland / lambdaisland/classpath
Enhancement request: fn to add deps map to the classpath
まだ誰も着手していません。
- 主要言語
- Clojure
- スター
- 90
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I realise update-classpath! can be used to achieve this, but it would be handy to have a dedicated fn in the lambdaisland.classpath ns that took a "deps map" (i.e. just the :deps portion of a deps.edn file), and added any missing dependencies described there to the active REPL classpath.
In effect this would emulate what pomegranate does, but with direct support for tda's "deps map" format (as well as things like git/sha coordinates), rather than leiningen's style of coordinates.
In my use case I'm running a clj initiated REPL outside the context of a "project", so there's no deps.edn file present to watch for changes. Instead, I want to try out different libraries by first finding them (e.g. using things like find-deps), downloading them from within the REPL, (requireing them, and then discovering and experimenting with their features. Only afterwards might a deps.edn file come out of that work.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
src/lambdaisland/classpath.clj の 263 行目付近にある update-classpath! から始め、既存の依存関係と classpath の処理を追ってください。求められている結果は、deps.edn の :deps マップを受け取り、説明されている座標形式をサポートし、不足している依存関係をアクティブな REPL の classpath に追加する、lambdaisland.classpath namespace 内の public function です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- clojure
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100