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 option to suppress hard linking #5734

Open
NeoAdonis opened this Issue Dec 14, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@NeoAdonis

NeoAdonis commented Dec 14, 2017

  • Describe the scenario and benefits that the feature supports.

The idea of this feature is to add an option to the file binder so the user can force the WiX toolset to fully copy outputs instead of just creating hard links to the built components.

A use-case where this is useful is in our build system where there's a file cache in place, so the output (in this case, hard links) is saved on it. Because of this, when a component is rebuilt, the file projected by those hard links seem to be edited as well, poisoning the cache.

  • Describe how you're accomplishing the feature today (if possible).

Before migrating to WiX 3.11, we had a custom WiX version which included a switch to suppress hard linking, forcing files to be fully copied instead. Currently our build system in charge of building MSIs, the system takes a dependency on this, so in order to support this switch or match the toolset behavior with what's expected, we require to code this .

  • Describe what you'd like the new feature to do.

Add an option to the file binder to suppress hard linking,

@barnson barnson added this to the v4.0 milestone Jan 18, 2018

@barnson

This comment has been minimized.

Show comment
Hide comment
@barnson

barnson Jan 18, 2018

Member

WiX v4 should be able to be smarter about when to copy -v- hard link: e.g., created files like cabs should be hard-linkable but loose files laid out should be copied.

For v3, a BinderFileManager lets you override CopyFile to prevent hard linking.

Member

barnson commented Jan 18, 2018

WiX v4 should be able to be smarter about when to copy -v- hard link: e.g., created files like cabs should be hard-linkable but loose files laid out should be copied.

For v3, a BinderFileManager lets you override CopyFile to prevent hard linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment