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

kerl cleanup not actually running? #280

Closed
jimsynz opened this issue Aug 18, 2023 · 1 comment · Fixed by #296
Closed

kerl cleanup not actually running? #280

jimsynz opened this issue Aug 18, 2023 · 1 comment · Fixed by #296

Comments

@jimsynz
Copy link

jimsynz commented Aug 18, 2023

I notice that bin/install does actually call kerl cleanup after successful install, however I think it must be calling it with the incorrect environment or something because when I do a fresh install of Erlang 26.0.2 I have over 700MB of files sitting in .asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2/otp_src_26.0.2.

You can reproduce it like so:

docker pull code.harton.nz/james/asdf_container:latest
docker run --rm -it code.harton.nz/james/asdf_container:latest
$ asdf plugin add erlang
$ asdf install erlang latest
$ du -shc .asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2
738M	.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2
738M	total
$ KERL_BASE_DIR=.asdf/plugins/erlang/kerl-home .asdf/plugins/erlang/kerl cleanup asdf_26.0.2 
Cleaning up compilation products for asdf_26.0.2
Cleaned up compilation products for asdf_26.0.2 under .asdf/plugins/erlang/kerl-home/builds
$ du -shc .asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2
du: cannot access '.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2': No such file or directory
0	total

Let me know if there's any way I can further help debug this.

@Stratus3D
Copy link
Member

I think I figured out the problem here. I will create a PR for this tomorrow.

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.

2 participants