Add `--deps/root` option to install command

Aperta
#70 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
clojure
Ambito
cli

Direzione di ricerca

Start at the bbin install command entry point and compare how bb.edn and deps.edn are resolved for local versus GitHub installs. Use the reported --deps/root command as the first reproduction; done means the nested projects/poly-bb bbin entry installs directly from the GitHub repository without cloning it locally.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

I have a project that has a nested project structure with a bbin entry.

Locally I can install this project with

bbin install . --local/root projects/poly-bb

or directly from the dir with

bbin install . 

From Github I have not been able to install it without cloning the repo locally.

Ideally one would be able to install this bbin binary with

bbin install io.github.jeroenvandijk/polylith --git/sha "6527bf4b4d6165c8ba7d8f678866e662d34b1c19" --deps/root "projects/poly-bb" --as poly-bb-dev1

I've tried adding a bb.edn file in the root of the project without success (it installs but then gets an error):

bbin install io.github.jeroenvandijk/polylith --git/sha "8c1632cf58d257ad574781192872133c0706941a" --as poly-bb-dev2
Error here
----- Error --------------------------------------------------------------------
Type:     java.lang.Exception
Message:  Could not find namespace: polylith-bb.core.
Location: <expr>:1:10

----- Context ------------------------------------------------------------------
1: (ns user (:require [polylith-bb.core])) (apply polylith-bb.core/-main *command-line-args*)
            ^--- Could not find namespace: polylith-bb.core.

----- Stack trace --------------------------------------------------------------
user - <expr>:1:10

Another option would be to change the deps.edn file in the root. This would however conflicts with the project structure of Polylith itself.

Lingua principale
Clojure
Stelle
195
Fork
15
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di babashka/bbin

Tutte le issue di babashka/bbin

Issue simili

Altre issue su Clojure

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.