clojars

http://clojars.org discussion and โ€œsupportโ€, see http://status.clojars.org for status.
2018-10-25T19:38:06.000100Z

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 ๐Ÿ™‚

2018-10-25T19:38:56.000100Z

@hi895 Do you mean in the top left, where normally it is a link to github?

2018-10-25T19:39:27.000100Z

@tcrawley yes exactly ๐Ÿ™‚ I'm using lein for deploying btw

2018-10-25T19:41:00.000100Z

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

2018-10-25T19:44:01.000100Z

hm, it's Github: https://clojars.org/googlesheets-sql-sync

2018-10-25T19:46:16.000100Z

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>

2018-10-25T19:46:32.000100Z

Yes, I was just typing that :)

2018-10-25T19:46:36.000100Z

That's where it comes from

2018-10-25T19:46:51.000100Z

is an example of what it should look like

2018-10-25T19:47:20.000100Z

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 ?

2018-10-25T19:48:39.000100Z

Thanks a lot @tcrawley for pointing me in the right direction! Sure I will figure this out ๐Ÿ™‚

2018-10-25T19:48:51.000100Z

My pleasure!

2018-10-25T20:03:34.000100Z

@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)

martinklepsch 2018-10-25T21:04:16.000200Z

@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

1
martinklepsch 2018-10-25T21:07:09.000200Z

Feel free to just do it or open an issue ๐Ÿ™Œ