This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-08
Channels
- # admin-announcements (42)
- # clara (8)
- # cljs-dev (2)
- # clojure (132)
- # clojure-argentina (4)
- # clojure-berlin (3)
- # clojure-brasil (3)
- # clojure-dev (8)
- # clojure-france (2)
- # clojure-hamburg (2)
- # clojure-india (1)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-russia (31)
- # clojure-spain (1)
- # clojurescript (154)
- # core-async (19)
- # datomic (16)
- # devcards (43)
- # funcool (3)
- # hoplon (4)
- # immutant (8)
- # jobs (4)
- # ldnclj (71)
- # off-topic (1)
- # om (4)
- # onyx (30)
- # re-frame (3)
- # reagent (6)
- # remote-jobs (2)
- # ring (2)
Does anybody know how to make the project's GitHub link appear to the right of the small GitHub icon?
@xavi: if you're using leiningen, you can set a :url
in the project.clj
I think that's where it's pulling
It's already set (https://github.com/xavi/mongologic/blob/master/project.clj) but didn't pick it up
ah, I see now
I have no idea 😜
projects I've published have it so I'm not sure
@xavi: I'm looking through here https://github.com/ato/clojars-web/blob/master/src/clojars/maven.clj#L71
<scm>
<tag>69c27dd15a0c6b4046019c8b4ccf45e75fb9b8cd
</tag>
<url/>
</scm>
empty url
is why
that is in ~/.m2/repository/mongologic/mongologic/0.5.0/mongologic-0.5.0.pom
should look something like this
<scm>
<connection>scm:git:
<developerConnection>scm:git:
<tag>d39ab3e03e490a376c3089d9a0a23ab9af73f85b
</tag>
<url>https://github.com/Hendrick/ring-okta</url>
</scm>
how are you deploying to clojars?
that might work
and maybe it didn't find out the info automatically because I don't have an origin
git remote (I have github
and bitbucket
remotes)... just guessing
if you do a lein install
does it add the url in the pom I pointed to earlier?
found the problem
user=> (def url "")
#'user/url
user=> (re-matches #"(?:[A-Za-z_]{2,}@)?" url)
nil
user=> (re-matches #"[^:]+://(?:[A-Za-z_]{2,}@)?" url)
nil
those are the two regexes being used by leiningen to try and parse your username/project
after renaming one of my remotes to be origin
(`git remote rename github origin`) then url is generated
both return nil
interesting
yup, you're right. leiningen is using only origin
https://github.com/technomancy/leiningen/blob/master/src/leiningen/pom.clj#L60
you could have both a github and an origin
make them the same
I'm not sure if you can "alias" a git remote
Just wanted to avoid having an origin, to be explicit on where I was pushing... but not a big deal (and now that project is public I'll probably don't push to BitBucket anymore)
Thanks a lot for your help @bostonaholic !
anytime
heck of a rabbit hole