uberjar splices profile into target path incorrectly #9

Open
opened 1 month ago by technomancy · 2 comments
Owner

Projects configured with :target-path "target/%s" get the path "default+uberjar" instead of just "uberjar".

Projects configured with `:target-path "target/%s"` get the path "default+uberjar" instead of just "uberjar".

I found that lein with-profile $profile uberjar is a good workaround for now.

I found that `lein with-profile $profile uberjar` is a good workaround for now.

Potentially related issue:
we are using lein-parent like this

:target-path "target/%s"
:parent-project {:coords [parent-clj "1.0.0"]
                 :inherit [:aliases
                           :dependencies
                           :exclusions
                           :managed-dependencies
                           :plugins
                           :profiles]}
:profiles {:dev [:parent-dev :local-dev]
             :local-dev {:dependencies
                         [[clj-http "3.12.3"]
                          [ring/ring-mock "0.4.0"]]}
             ;; The parent-dev profile is provided by the service-parent-clj
             ;; project.  It is included here only to suppress some warning
             ;; messages
             :parent-dev {}
             :uberjar {:aot [...]}}

on Lein 2.9.8, this working fine without any warnings.
on Lein 2.9.10, i am seeing these warnings:

Warning: profile :parent-dev not found.
Warning: profile :local-dev not found.

However, the workaround above, lein with-profile uberjar uberjar fix both the output path and the above warnings.

Potentially related issue: we are using `lein-parent` like this ``` :target-path "target/%s" :parent-project {:coords [parent-clj "1.0.0"] :inherit [:aliases :dependencies :exclusions :managed-dependencies :plugins :profiles]} :profiles {:dev [:parent-dev :local-dev] :local-dev {:dependencies [[clj-http "3.12.3"] [ring/ring-mock "0.4.0"]]} ;; The parent-dev profile is provided by the service-parent-clj ;; project. It is included here only to suppress some warning ;; messages :parent-dev {} :uberjar {:aot [...]}} ``` on Lein 2.9.8, this working fine without any warnings. on Lein 2.9.10, i am seeing these warnings: ``` Warning: profile :parent-dev not found. Warning: profile :local-dev not found. ``` However, the workaround above, `lein with-profile uberjar uberjar` fix both the output path and the above warnings.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: leiningen/leiningen#9
Loading…
There is no content yet.