chiark / gitweb /
nailing-cargo: Work around cargo annoyance with workspaces
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2020 15:53:46 +0000 (16:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2020 16:16:47 +0000 (17:16 +0100)
commit8dbd084a86a3dff840a215211cf8304ee61a927a
tree874c1040e22cd65e8c49ae6d6d42150512871932
parentb801615aca61808526735a34c52fe3c74e640e76
nailing-cargo: Work around cargo annoyance with workspaces

When the invocation $subdir is a workspace, with -u, cargo complains
that the packages in the linkfarm are different to the ones in the
source area.

Fix this by, in this case, adjusting those path references to point
into the linkfarm.

cargo seems to use realpath on one of these paths, so we must do so
too, or cargo complains that two things are different which are
literally two different paths to the very same symlink.

With this change I am able to build lexpr-rs, both in its own right,
and as a dependency.  Closes #1.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo