Fork me on GitHub
#clojars
<
2016-09-18
>
smaant16:09:46

Hi guys. I’m looking into the feed.clj.gz file format, am I right that 1) versions should be sorted by time of release 2) scm.tag is the commit of the latest release? If the both are ‘yes’, then there’s probably a bug there, for instance:

{:group-id "org.clojars.smallrivers", :artifact-id "aleph", :description "a framework for asynchronous communication", :scm {:connection "scm:git:", :developer-connection "scm:git:", :tag "a361d01502e6711a845a184b783685d264a0bd45", :url ""}, :versions ["0.2.1-SNAPSHOT" "0.2.1-rc5" "0.2.1-rc4" "0.2.1-alpha2-SNAPSHOT”]}
however on clojars versions are sorted as: 0.2.1-rc5 0.2.1-rc4 0.2.1-SNAPSHOT 0.2.1-alpha2-SNAPSHOT

smaant17:09:13

also :tag in the feed points to the 0.2.1-SNAPSHOT which is probably not the latest one (but the first in the :versions)

tcrawley17:09:45

@smaant it doesn't look like we do any sorting on that data, but would welcome a PR to fix the sorting and to show the latest scm. The feed is generated here: https://github.com/clojars/clojars-web/tree/master/src/clojars/tools/generate_feeds.clj#L13

smaant17:09:12

Yeah, i’m looking at it right now too

smaant17:09:00

Will do a PR, yes. Would you mind if I also extend format a little bit - I want to have tags for all versions? Will make it backward compatible with current one.

tcrawley17:09:33

Yep, that's fine as long as it stays backward compatible. Would you mind filing an issue for it as well for release tracking purposes?

smaant17:09:27

One for bug and another for extension?

tcrawley17:09:54

yes, 2 issues probably makes sense