-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
pnpm
installs by moving binary download location (#1927)
Fixes #1881 Now binaries will be stored in a consistent location no matter what mechanism we use to grab them. This will mean they won't conflict with the shim that pnpm uses and thus avoid the infinite loop
- Loading branch information
1 parent
436a677
commit 691e5b0
Showing
5 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#! /bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd "$(mktemp -d)" | ||
echo "Created test directory" | ||
npm init -y | ||
echo "Initialised new npm package" | ||
npm install --install-links=true "$SCRIPT_DIR/../../installers/npm" | ||
echo "Installed rover as local npm package" | ||
cd node_modules/.bin/ | ||
echo "Checking version" | ||
./rover --version | ||
echo "Checked version, all ok!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd "$(mktemp -d)" | ||
echo "Created test directory" | ||
npm install --install-links=true -g "$SCRIPT_DIR/../../installers/npm" | ||
echo "Installed rover as global npm package" | ||
cd /usr/local/bin/ | ||
echo "Checking version" | ||
./rover --version | ||
echo "Checked version, all ok!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /bin/bash | ||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd "$(mktemp -d)" | ||
echo "Created test directory" | ||
npm install -g [email protected] | ||
echo "Installed pnpm" | ||
pnpm init | ||
pnpm add "file:$SCRIPT_DIR/../../installers/npm" | ||
echo "Installed rover as pnpm package" | ||
cd node_modules/.bin/ | ||
echo "Checking version" | ||
./rover --version | ||
echo "Checked version, all ok!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters