[wix-devs] Support for -shardlinks?

Heath Stewart Heath.Stewart at microsoft.com
Fri Sep 23 07:08:01 PDT 2016


I asked them to join, but in the meantime, here is their reason:

---
There are dependency based build systems which have analyzers (tools that tracks file accesses per project to construct build graph) considering hard links as write. In this situation, if there is a project which produces a product msi and a bundle (separate project) which consumes it, the bundle would end up hard linking the product msi. This scenario leads to analyzer considering this as a write and the confusion of both bundle and product project producing the msi.

A question that would popup is why would analyzer consider hard link as a write and not read? One answer I got is that the build system was hitting an upper limit on number of hard links.

This provides an escape mechanism if people want to opt out of hard linking. This is useful in temporary scenarios where dependent build tools have issues and require time to get fixed, though this does results in duplication of content.
---

- Heath via Nine<http://www.9folders.com/> on Android
________________________________
From: Rob Mensching <rob at firegiant.com>
Sent: Sep 22, 2016 5:05 PM
To: WiX Toolset Developer Mailing List
Subject: Re: [wix-devs] Support for -shardlinks?

I think $(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible) came with the standardization on Microsoft.Common.targets.

I guess I'd like to know "why". I know you're just the messenger, Heath. So, those that want it should really bring forth their very good reasoning. <smile/>

Regards,

  Rob Mensching
  CEO
  FireGiant
_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7c134e2b8192d84a3db32f08d3e34548cc%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101859133905914&sdata=LQxN697fQ43QxuMjL0yFRwwgK89wgPwCHZTPOix%2bNSw%3d


-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Heath Stewart
Sent: Thursday, September 22, 2016 5:00 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: Re: [wix-devs] Support for -shardlinks?

Hmm. Maybe that came after Rob left then. Bob, you remember anything?

Regardless, not quite, Sean. Same idea, though. Light will create hard links, but some people don't want that. The MSBuild property just effects the built-in Copy task, so this would be similar. Maybe even have a property that could set both together (I'd almost suggest using that one, except for the "CopyFiles" seeming a bit task-specific...but don't care all that much otherwise).

Heath Stewart
Visual Studio, Microsoft
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fblogs.msdn.microsoft.com%2fheaths&data=02%7c01%7cHeath.Stewart%40microsoft.com%7c134e2b8192d84a3db32f08d3e34548cc%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101859133905914&sdata=xIENGG2sx3d62sdWb9PlfsAoEehiDfVBHUuGHkhhih0%3d

-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Sean Hall
Sent: Thursday, September 22, 2016 2:45 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: Re: [wix-devs] Support for -shardlinks?

wix4 has an msbuild
property CreateHardLinksForCopyFilesToOutputDirectoryIfPossible - https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fwixtoolset%2fwix4%2fblob%2fdevelop%2fsrc%2ftools%2fWixTasks%2fwix.targets%23L1172&data=02%7c01%7cHeath.Stewart%40microsoft.com%7cf9202e32f5a747a07c1c08d3e331ca4c%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101775398328833&sdata=%2bcv1R6FZTooAd8Qs%2bnGl%2b4X4ZTihVQaS7eYGq%2bMfE3I%3d.
Does that accomplish the same thing?

On Thu, Sep 22, 2016 at 4:11 PM, Rob Mensching <rob at firegiant.com> wrote:

> Never heard of that switch before.
>
> _______________________________________________________________
>  FireGiant  |  Dedicated support for the WiX toolset  |
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.fi
> regiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7cf9202e32
> f5a747a07c1c08d3e331ca4c%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c
> 636101775398328833&sdata=FdXiAqEPHurwQncV%2fgQFJfRxG7aOU7SAeMy%2fZ6ZP3
> yk%3d
>
>
> -----Original Message-----
> From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On
> Behalf Of Heath Stewart
> Sent: Thursday, September 22, 2016 1:50 PM
> To: wix-devs at lists.wixtoolset.org
> Subject: [wix-devs] Support for -shardlinks?
>
> I got a request for a bug fix on the internal 3.7 repo today about
> -shardlinks and noticed no history for it - at least in the GitHub
> repos. I seem to recall it was around internally for quite a while.
> Was it removed from the old CodePlex repos, or just never added
> externally? Any desire for a port to wix4 (or even wix3)?
>
> (Background: -shardlinks is used to suppress creating hardlinks - a
> request from some build labs for reasons I don't remember...perhaps to
> avoid trying at all when the output directory is on another volume or
> something.)
>
> Heath Stewart
> Visual Studio, Microsoft
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fblogs.
> msdn.microsoft.com%2fheaths&data=02%7c01%7cHeath.Stewart%40microsoft.c
> om%7cf9202e32f5a747a07c1c08d3e331ca4c%7c72f988bf86f141af91ab2d7cd011db
> 47%7c1%7c0%7c636101775398328833&sdata=rrdCFFl47skcpizaqGhAbaO61g01VmpR
> JMRWERWUUzQ%3d
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.fi
> regiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7cf9202e32
> f5a747a07c1c08d3e331ca4c%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c
> 636101775398328833&sdata=FdXiAqEPHurwQncV%2fgQFJfRxG7aOU7SAeMy%2fZ6ZP3
> yk%3d
>
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7cf9202e32f5a747a07c1c08d3e331ca4c%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101775398328833&sdata=FdXiAqEPHurwQncV%2fgQFJfRxG7aOU7SAeMy%2fZ6ZP3yk%3d
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7c134e2b8192d84a3db32f08d3e34548cc%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101859133905914&sdata=LQxN697fQ43QxuMjL0yFRwwgK89wgPwCHZTPOix%2bNSw%3d
____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=02%7c01%7cHeath.Stewart%40microsoft.com%7c134e2b8192d84a3db32f08d3e34548cc%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636101859133905914&sdata=LQxN697fQ43QxuMjL0yFRwwgK89wgPwCHZTPOix%2bNSw%3d


More information about the wix-devs mailing list