[ofiwg] symlinks in git repos

Jason Gunthorpe jgg at ziepe.ca
Thu Nov 22 08:47:41 PST 2018


On Wed, Nov 21, 2018 at 06:59:27PM +0000, Hefty, Sean wrote:
> With the merger of fabtests into libfabric, we're looking at code being shared between the two.  One way of handling this is to use symlinks in fabtests to reference files stored in the libfabric portion of the tree.
> 
> This works wonderful... on Linux.  On Windows, not so much.  :/ Has
> anyone had any experience using symlinks or sharing files between
> different directories in git that works when building on Windows?
> 
> So far, our best option appears to be maintaining actual copies of
> the files/code, and relying on some sort of script to ensure that
> they are kept in sync.

You could do something like..

$ cat foo.c
#include ".../.../../other/foo.c"

Hackity but pretty close to a symlink

Jason


More information about the ofiwg mailing list