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

Add hardlinkCompiler, which allows to create hard links instead of copying files #1066

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LaurentRDC
Copy link
Collaborator

With this patch, one can replace uses of copyFileCompiler to hardlinkCompiler, to create hardlinks rather than copying files.

If you use hardlinkCompiler, note that syncing your compiled site might need tweaking. For example, rsync will not follow hard links by default; the flag --hard-links needs to be passed.

Fixes #786.

@LaurentRDC LaurentRDC force-pushed the 786-symlinks-compiler branch from 228c9d6 to 2aaf435 Compare February 23, 2025 16:55
) where


--------------------------------------------------------------------------------
import Data.Binary (Binary (..))
import Data.Typeable (Typeable)
#if MIN_VERSION_directory(1,2,6)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer needed as the min version of directory is alread y 1.2.7.0

@LaurentRDC LaurentRDC force-pushed the 786-symlinks-compiler branch 5 times, most recently from 70eec2f to 3b48939 Compare February 24, 2025 00:10
@LaurentRDC LaurentRDC force-pushed the 786-symlinks-compiler branch from 3b48939 to c55fca7 Compare February 24, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: symlink/symbolic link for faster/smaller compiled site versions
1 participant