Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jan 7, 2025

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