Skip to content

Commit

Permalink
Make Ammonite cache its files in TMPDIR.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gouttegd committed Dec 31, 2024
1 parent d734424 commit c31beae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/src/ontology/Makefile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,8 @@ normalize_src: $(SRC)
$(ROBOT) convert -i $< -f {% if 'obo' == project.edit_format %}obo --check false{% else %}ofn{% endif %} -o $(TMPDIR)/normalise && mv $(TMPDIR)/normalise $<

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

.PHONY: update_repo
update_repo:
Expand Down

0 comments on commit c31beae

Please sign in to comment.