This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-14
Channels
- # announcements (10)
- # architecture (3)
- # atom-editor (1)
- # babashka (53)
- # babashka-sci-dev (118)
- # beginners (74)
- # biff (10)
- # calva (13)
- # clara (13)
- # clerk (20)
- # clj-commons (17)
- # clj-kondo (6)
- # cljdoc (19)
- # cljs-dev (3)
- # clojars (2)
- # clojure (63)
- # clojure-art (2)
- # clojure-europe (68)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (3)
- # clojured (19)
- # clojurescript (34)
- # clr (1)
- # cursive (11)
- # emacs (12)
- # fulcro (3)
- # helix (2)
- # holy-lambda (2)
- # honeysql (27)
- # hyperfiddle (36)
- # malli (2)
- # off-topic (72)
- # polylith (4)
- # rdf (20)
- # re-frame (20)
- # reitit (4)
- # rewrite-clj (14)
- # shadow-cljs (17)
- # slack-help (2)
- # tools-deps (36)
- # xtdb (3)
> If you want to include pre-releases and snapshots, use the following markdown code what exactly is considered as pre-release in badge URL code? I cannot find documentation about this For example this version https://clojars.org/com.github.strojure/ring-lib/versions/1.2.0-44-alpha1 is shown on both badges. Should I deploy alpha version to snapshot server to exclude it from not pre-release badge?
> what exactly is considered as pre-release in badge URL code?
The Clojars code only considers snapshots as pre-release based on this query: https://github.com/clojars/clojars-web/blob/main/resources/queries/queryfile.sql#L468-L472
That drives two values in the API that http://shields.io calls:
• latest_release
the most recent non-snapshot version
• latest_version
the most recent version, snapshot or not
Looking at the http://shields.io implementation, it uses latest_version
for this badge, and uses
latest_release
to power the other badge (falling back to latest_version
if latest_release
isn't set, which is questionable): https://github.com/badges/shields/blob/master/services/clojars/clojars-version.service.js#L41-L47
So that wording is definitely wrong on clojars, and should just be: "If you want to include pre-releases and snapshots, use the following markdown code"
> Should I deploy alpha version to snapshot server to exclude it from not pre-release badge?
There is not a separate snapshot server/repo; snapshots and non-snapshots share the repo.