Skip to content

Commit c31beae

Browse files
committed
Make Ammonite cache its files in TMPDIR.
When running a Scala script, Ammonite attempts to download and store the script's dependencies in /tools/.coursier-cache, which requires root privileges. We force Ammonite to write its cache in the current ontology's TMPDIR instead. closes #1159
1 parent d734424 commit c31beae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/src/ontology/Makefile.jinja2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,8 @@ normalize_src: $(SRC)
13331333
$(ROBOT) convert -i $< -f {% if 'obo' == project.edit_format %}obo --check false{% else %}ofn{% endif %} -o $(TMPDIR)/normalise && mv $(TMPDIR)/normalise $<
13341334

13351335
.PHONY: validate_idranges
1336-
validate_idranges:
1337-
amm $(SCRIPTSDIR)/validate_id_ranges.sc {{ project.id }}-idranges.owl
1336+
validate_idranges: | $(TMPDIR)
1337+
COURSIER_CACHE=$(TMPDIR)/coursier-cache amm $(SCRIPTSDIR)/validate_id_ranges.sc {{ project.id }}-idranges.owl
13381338

13391339
.PHONY: update_repo
13401340
update_repo:

0 commit comments

Comments
 (0)