Skip to content

Add Scala-CLI, but do not remove Ammonite yet#1166

Merged
gouttegd merged 3 commits intomasterfrom
add-scala-cli-without-removing-ammonite
Jan 7, 2025
Merged

Add Scala-CLI, but do not remove Ammonite yet#1166
gouttegd merged 3 commits intomasterfrom
add-scala-cli-without-removing-ammonite

Conversation

@gouttegd
Copy link
Contributor

@gouttegd gouttegd commented Jan 7, 2025

This PR supersedes #1165. It also adds Scala-CLI to ODKFull, but leaves Ammonite in place, with a deprecation notice warning users of its future complete removal (probably in ODK 1.7).

fixes #1161
partially addresses #1162

Scala-CLI is the new command-line runner for the Scala language,
intended to replace Ammonite.
The ODKFull image defines the COURSIER_CACHE environment variable to
/tools/.coursier-cache, so Ammonite and Scala-CLI expect to be able to
store their downloaded dependencies in there.

If we run under a non-privileged user, we need to ensure that, if the
directory does not exist, it is created and given to the odkuser.

(If the directory already exists, it means a host directory has been
explicitly bound to it, in which case permissions will already be
correct, and we have nothing to do.)
Mention in the changelog that Scala users should start moving away from
Ammonite towards Scala-CLI.
@gouttegd gouttegd self-assigned this Jan 7, 2025
@gouttegd gouttegd merged commit 20a522c into master Jan 7, 2025
1 check passed
@gouttegd gouttegd deleted the add-scala-cli-without-removing-ammonite branch January 7, 2025 18:28
@gouttegd
Copy link
Contributor Author

gouttegd commented Jan 7, 2025

Merging without review (YOLO!) since the original PR (#1165) has already been reviewed and approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revise need for global COURSIER_CACHE environment variable

1 participant