This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-09
Channels
- # aleph (4)
- # arachne (3)
- # beginners (41)
- # boot (300)
- # cider (17)
- # cljs-dev (37)
- # cljsjs (4)
- # cljsrn (5)
- # clojure (249)
- # clojure-boston (3)
- # clojure-czech (4)
- # clojure-dev (14)
- # clojure-greece (183)
- # clojure-nl (2)
- # clojure-russia (11)
- # clojure-spec (135)
- # clojure-uk (37)
- # clojurescript (56)
- # community-development (8)
- # cursive (22)
- # data-science (4)
- # datomic (150)
- # devcards (6)
- # emacs (5)
- # euroclojure (8)
- # funcool (18)
- # hoplon (29)
- # immutant (1)
- # jobs (1)
- # lambdaisland (3)
- # lein-figwheel (7)
- # leiningen (18)
- # mount (1)
- # om (81)
- # onyx (95)
- # planck (50)
- # proton (6)
- # re-frame (62)
- # reagent (2)
- # ring (1)
- # robots (1)
- # spacemacs (2)
- # specter (88)
- # test-check (32)
- # untangled (23)
- # yada (1)
howdy! i’ve deployed a couple versions of a module to clojars using ‘lein deploy’ and I thought I would try ‘lein release’ instead to get the handy version bump/tag stuff. however when i try lein release :patch
I get:
other:dawdle [master] keith $ lein release :patch
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
java.lang.Exception: Couldn't commit. git exit code: 1
Are you using git?
other:dawdle [master] keith $ lein pprint :release-tasks
[["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag"]
["deploy"]]
seems like the bump-version step is not changing project.clj, and so the vcs.commit step is failing with ‘nothing to commit'
have you put custom release tasks in there?
what version of lein do you have?
what is the version of your project in project.clj
?
those steps are needed 🙂
I think you need to be on a SNAPSHOT for bump version to work
the default commands handle bumping to and from snapshots for you
you could raise an issue on leiningen for better error handling/warning when you try to release on a non SNAPSHOT version