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

pkg doesn't clean up and leaves the temporary directory on failure #2224

Open
yurivict opened this issue Jan 17, 2024 · 0 comments
Open

pkg doesn't clean up and leaves the temporary directory on failure #2224

yurivict opened this issue Jan 17, 2024 · 0 comments

Comments

@yurivict
Copy link
Member

I was experimenting with one new port and there was a symlink /usr/local/lib/lean/Std present in place where pkg was installing the package's directory.

Here is what pkg printed:

===>   Registering installation for lean4-std-4.5.0.r1
Installing lean4-std-4.5.0.r1...
pkg-static: Fail to rename /usr/local/lib/lean/.pkgtemp.Std.LWOrsb0zC50H -> /usr/local/lib/lean/Std:Not a directory
*** Error code 1

The directory /usr/local/lib/lean/.pkgtemp.Std.LWOrsb0zC50H was left.

pkg should clean up temporary files/directories when some failure prevents it from proceeding.

pkg-1.20.9
FreeBSD 14.0

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

1 participant