This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-25
Channels
- # 100-days-of-code (6)
- # announcements (4)
- # aws (2)
- # beginners (151)
- # boot (1)
- # calva (1)
- # cider (19)
- # clara (47)
- # cljdoc (9)
- # cljs-dev (25)
- # clojars (18)
- # clojure (151)
- # clojure-canada (1)
- # clojure-conj (1)
- # clojure-dev (17)
- # clojure-italy (42)
- # clojure-nl (34)
- # clojure-spec (67)
- # clojure-uk (125)
- # clojurescript (163)
- # core-async (106)
- # cursive (19)
- # data-science (11)
- # datomic (9)
- # duct (2)
- # figwheel (1)
- # figwheel-main (6)
- # fulcro (97)
- # graphql (9)
- # instaparse (4)
- # jobs (6)
- # jobs-discuss (21)
- # leiningen (62)
- # mount (23)
- # off-topic (16)
- # re-frame (15)
- # reagent (16)
- # reitit (5)
- # remote-jobs (1)
- # ring-swagger (9)
- # shadow-cljs (176)
- # tools-deps (102)
- # unrepl (3)
Hi there! Was wondering how I can add a link to Github to a project's Clojars page. Currently it only says "N/A". Would be awesome if someone could point me into the right direction π
That comes from the vcs metadata in the pom.xml, which lein
should populate automatically if you are deploying from a git repo. Though the clojars code may only know how to construct a url from that for github - it may not work if your remote isn't github
hm, it's Github: https://clojars.org/googlesheets-sql-sync
The scm
tag in the pom file is pretty empty. Not sure if that's the source where Clojars takes the information from thought:
<scm>
<tag>528588aaf75a5bb1b7e4de6a6941b49e99a6f3f8</tag>
</scm>
I know lein
has some logic around generating that, but I don't know what would prevent it from doing so. Maybe ask in #leiningen ?
Thanks a lot @tcrawley for pointing me in the right direction! Sure I will figure this out π
@tcrawley found the issue btw. lein only matches git@ urls. I was using an https:// url. Guess I will ask lein if they like to change that over there π (see https://github.com/technomancy/leiningen/blob/1dc131128279ef50f21d4d643c4d5c2133c1370d/src/leiningen/pom.clj#L75)
@hi895 thatβs an interesting observation... there are some docs for cljdoc that also suggest using the https URL - do you think they should be changed? https://github.com/cljdoc/cljdoc/blob/master/doc/userguide/faq.md
Seems like cljdoc is also affected by this. Guess that many projects are using lein for release. Since lein didn't put that info in the pom file for those repositories, it's hard to analyze it. I think the only reasonable place to fix this is in lein, not on the consumer side.
There are many examples I came across:
https://cljdoc.org/d/http-kit/http-kit/2.3.0
https://clojars.org/spootnik/signal
If there is no url in the scm info in pom, can still use the main url
tag in the pom file which probably points to a useful resource π
Feel free to just do it or open an issue π