Skip to content

Commit a2bc498

Browse files
vemvbbatsov
authored andcommitted
Makefile: always use -user Lein profile
Increases reproducibility.
1 parent 1007408 commit a2bc498

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@ test/resources/cider/nrepl/clojuredocs/export.edn:
77
curl -o $@ https://github.com/clojure-emacs/clojuredocs-export-edn/raw/master/exports/export.compact.edn
88

99
.inline-deps:
10-
lein inline-deps
10+
lein with-profile -user inline-deps
1111
touch .inline-deps
1212

1313
inline-deps: .inline-deps
1414

1515
test: .inline-deps test/resources/cider/nrepl/clojuredocs/export.edn
16-
lein with-profile +$(CLOJURE_VERSION),+test,+plugin.mranderson/config test
16+
lein with-profile -user,+$(CLOJURE_VERSION),+test,+plugin.mranderson/config test
1717

1818
quick-test:
19-
lein with-profile +$(CLOJURE_VERSION),+test test
19+
lein with-profile -user,+$(CLOJURE_VERSION),+test test
2020

2121
eastwood:
22-
lein with-profile +$(CLOJURE_VERSION),+eastwood eastwood
22+
lein with-profile -user,+$(CLOJURE_VERSION),+eastwood eastwood
2323

2424
cljfmt:
25-
lein with-profile +$(CLOJURE_VERSION),+cljfmt cljfmt check
25+
lein with-profile -user,+$(CLOJURE_VERSION),+cljfmt cljfmt check
2626

2727
kondo:
28-
lein with-profile -dev,+clj-kondo run -m clj-kondo.main --lint src
28+
lein with-profile -user,-dev,+clj-kondo run -m clj-kondo.main --lint src
2929

3030
cloverage:
31-
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage
31+
lein with-profile -user,+$(CLOJURE_VERSION),+cloverage cloverage
3232

3333
install: .inline-deps
34-
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config install
34+
lein with-profile -user,+$(CLOJURE_VERSION),+plugin.mranderson/config install
3535

3636
smoketest: install
3737
cd test/smoketest && \
38-
lein with-profile +$(CLOJURE_VERSION) uberjar && \
38+
lein with-profile -user,+$(CLOJURE_VERSION) uberjar && \
3939
java -jar target/smoketest-0.1.0-SNAPSHOT-standalone.jar
4040

4141

@@ -52,14 +52,14 @@ detect_timeout:
5252
BUMP ?= patch
5353

5454
release:
55-
lein with-profile +$(CLOJURE_VERSION) release $(BUMP)
55+
lein with-profile -user,+$(CLOJURE_VERSION) release $(BUMP)
5656

5757
# Deploying requires the caller to set environment variables as
5858
# specified in project.clj to provide a login and password to the
5959
# artifact repository.
6060

6161
deploy: .inline-deps
62-
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config deploy clojars
62+
lein with-profile -user,+$(CLOJURE_VERSION),+plugin.mranderson/config deploy clojars
6363

6464
clean:
6565
lein clean

0 commit comments

Comments
 (0)