機能をリクエストしバグを報告しますか?
これはバグレポートです。
現在の動作は何ですか?
package.json
にgit+ssh
URLを使用する依存関係が含まれている場合にyarn install
実行している場合
名前に#
が含まれるブランチ名を指定します(追跡の問題で一般的です)。インストールは次のエラーで失敗します。
error Couldn't find match for "issue-" in "refs/heads/issue-#1,refs/heads/master" for "[email protected]:cdimitroulas/test-repository.git".
package.json
依存関係の例:
"dependencies": {
"test-module": "git+ssh://[email protected]:cdimitroulas/test-repository.git#issue-#1"
}
現在の動作がバグである場合は、再現する手順を提供してください。
npm init -y
初期化します。package.json
作成します。{
"name": "yarn-bug",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"test-module": "git+ssh://[email protected]:cdimitroulas/test-repository.git#issue-#1"
}
}
yarn install
実行します期待される動作は何ですか?
yarn install
は、指定されたブランチからモジュールをインストールする必要があります。
node.js、yarn、およびオペレーティングシステムのバージョンをお知らせください。
npm- 6.1.0
糸- 1.7.0
os- Ubuntu 16.04
(x64)
v1.7.0で確認済み。 今日はこれのPRができるか見てみます...
素晴らしい、迅速なPRに感謝します
これは#4880の複製であり、修正のために別のPR#4881がすでに開いていることがわかりました。 この問題はすでに存在しているものと同じであるため、この問題を重複して閉じ、PRを閉じます。 #4881には、この構文をサポートする必要があるかどうかについての議論があります...