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

Mill creates a rt-21.0.5.jar file under home directory #4164

Closed
dragove opened this issue Dec 19, 2024 · 5 comments · Fixed by #4206
Closed

Mill creates a rt-21.0.5.jar file under home directory #4164

dragove opened this issue Dec 19, 2024 · 5 comments · Fixed by #4206
Milestone

Comments

@dragove
Copy link

dragove commented Dec 19, 2024

Mill creates a rt-21.0.5.jar file in home directory on Linux. This behavior occurs in versions 0.12.3 and 0.12.4, but it doesn't seem to happen in earlier versions.

mill script is installed via

curl -L https://github.com/com-lihaoyi/mill/releases/download/0.12.4/0.12.4 > mill && chmod +x mill

my environment:

OS: Arch Linux
Scala Version: 3.6.2

@lefou
Copy link
Member

lefou commented Dec 19, 2024

I also found some rt-<version>.jar files in my home dir.

@sequencer
Copy link
Contributor

I just touch the rt-<version>.jar to avoid this creation, see here...

@asarkar
Copy link

asarkar commented Dec 29, 2024

It seems to create a jar corresponding to the JDK used. I've different JDKs for different projects, and Mill creates one for each. This is ugly, I don't want it to clutter my home directory.

@lihaoyi
Copy link
Member

lihaoyi commented Dec 29, 2024

Yes this is definitely a bug and regression somewhere, we used to put it in ~/.mill but somewhere along we messed up the logic

@lefou
Copy link
Member

lefou commented Dec 29, 2024

IIRC we use the location associated with Ctx.home and the --home option, which should default to $HOME/.mill/ammonite. We deprecated it for a while, since it was assumed an Ammonite legacy. I don't know why it's created in the home directory though.

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 a pull request may close this issue.

5 participants