From 8d234a22a08b33049d6ee60672ccbabb273af5a1 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Fri, 23 Jun 2017 11:20:52 -0700 Subject: [PATCH] WIP --- .../deps/a-1/package.json | 7 +++++++ .../deps/b-1/b-1.0.0.tgz | Bin 0 -> 4862 bytes .../deps/b-2/package.json | 4 ++++ .../deps/d-1/package.json | 7 +++++++ .../hardlink-collision-no-bundled/package.json | 7 +++++++ .../install/transitive-file/package.json | 4 +--- src/package-linker.js | 6 +++++- 7 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 __tests__/fixtures/install/hardlink-collision-no-bundled/deps/a-1/package.json create mode 100644 __tests__/fixtures/install/hardlink-collision-no-bundled/deps/b-1/b-1.0.0.tgz create mode 100644 __tests__/fixtures/install/hardlink-collision-no-bundled/deps/b-2/package.json create mode 100644 __tests__/fixtures/install/hardlink-collision-no-bundled/deps/d-1/package.json create mode 100644 __tests__/fixtures/install/hardlink-collision-no-bundled/package.json diff --git a/__tests__/fixtures/install/hardlink-collision-no-bundled/deps/a-1/package.json b/__tests__/fixtures/install/hardlink-collision-no-bundled/deps/a-1/package.json new file mode 100644 index 0000000000..689146054d --- /dev/null +++ b/__tests__/fixtures/install/hardlink-collision-no-bundled/deps/a-1/package.json @@ -0,0 +1,7 @@ +{ + "name": "a", + "version": "1.0.0", + "dependencies": { + "b": "file:../b-1/b-1.0.0.tgz" + } +} diff --git a/__tests__/fixtures/install/hardlink-collision-no-bundled/deps/b-1/b-1.0.0.tgz b/__tests__/fixtures/install/hardlink-collision-no-bundled/deps/b-1/b-1.0.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..b5a9eb1da7b27bc625d629adee8214ea6486aaa9 GIT binary patch literal 4862 zcmZveWmME#xQB;E8VLyzgkk6ol^Q@0hVGP*?q(Deh90_0JW|r2G=fSa-CYtgIv`Sm z#K18Bd(OG*)>`-dv_HMSz4qGc`8}LT#`yof;Rn)ePrNaulw_aI>s<+Uq|+{rx7c zkxaFFutcy>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