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

Allow Ammonite to be managed by SDKMAN! #1029

Closed
hammer opened this issue Dec 26, 2019 · 4 comments
Closed

Allow Ammonite to be managed by SDKMAN! #1029

hammer opened this issue Dec 26, 2019 · 4 comments

Comments

@hammer
Copy link

hammer commented Dec 26, 2019

I have found https://sdkman.io to be a very useful tool to switch between the various Java, Scala, and sbt versions required by different projects we work on. I consider Ammonite part of the Scala platform for our developers, and I would love for SDKMAN! to be able to manage our Ammonite installations as well.

It appears that this possibility was discussed in the past (cf. sdkman/sdkman-db-migrations#33). However, I was not able to find an archive of this discussion.

Any chance we could re-open the discussion for allowing SDKMAN! to manage Ammonite, or at least document why it's not a good idea in a public forum?

@lihaoyi
Copy link
Member

lihaoyi commented Jan 7, 2020

no idea what sdkman is, feel free to add support, but I don't think that's something that Ammonite needs to care about. Ammonite packages for homebrew, apt-get, chocolatey, etc. all live in their respective repos

@lihaoyi lihaoyi closed this as completed Jan 7, 2020
@ganeshchand
Copy link

brew install ammonite works great. However, where it gets tricky is that it will pick the version for us and I ran into an issue recently where my ammonite was broken because the libraries I specified in predef.sc file are not yet available for Scala 2.13.
I had to then go to ammonite website, find the ammonite install URL for 2.12 and install it.

sdkman is a great tool for JVM ecosystem, similar to . It let's us pick the specific version, can show all available versions and allow us to switch between the version. I can switch from Scala 2.13 to 2.12 on my computer with just one command. It would be great to see ammonite also available in sdkman.

I got the exact uplifting experience going from brew to sdkman as I did going from pip to conda. :-)

@ganeshchand
Copy link

Also, for newbies, who are just trying to get started with scala, the setup instructions would be as simple as running following 4 commands in the terminal. No more downloading zip file, unzipping, setting up path, which is where beginners tend to struggle.

curl -s "https://get.sdkman.io" | bash # install sdk manager
sdk install java 11.0.11.j9-adpt
sdk install scala 2.13.6
# sdk install ammonite ??

@ganeshchand
Copy link

@lihaoyi ^^

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

No branches or pull requests

3 participants