Skip to content

Fall back to making a regular copy if hard linking fails#75

Merged
jhheider merged 3 commits intopkgxdev:mainfrom
tclementdev:main
Feb 4, 2026
Merged

Fall back to making a regular copy if hard linking fails#75
jhheider merged 3 commits intopkgxdev:mainfrom
tclementdev:main

Conversation

@tclementdev
Copy link
Contributor

This fixes using pkgm on Linux distributions where the home directory is setup on a different volume than /usr/local. For example, this is the case on a default installation of Fedora.

Together with this other PR in pkgx, this fixes using sudo pkgm install <package> on Linux to install packages in /usr/local/bin. See full discussion for more information.

…y typical for Linux distributions to setup home directories on a separate volume).
Add fallback warning for hard link failure in mirror_directory function, since this could cause unexpected behavior.
@jhheider
Copy link
Contributor

jhheider commented Feb 4, 2026

I added a warning, since silent behavior changes should be noted to the user. The copies use actual disk space, and decouple the source and destination files, so it should be known by the user.

@jhheider jhheider removed the request for review from mxcl February 4, 2026 18:07
@jhheider jhheider merged commit 2b5e188 into pkgxdev:main Feb 4, 2026
2 of 3 checks passed
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.

2 participants