私は0.20.3の糸を使っています
現在の動作は何ですか?
私は自分の部門にURLを持っています: "trae": "https://github.com/capaj/trae.git",
yarn
を実行します
https://github.com/capaj/trae.gitリポジトリにコミットし
yarn add https://github.com/capaj/trae.git
を実行して、リポジトリから最新バージョンを取得します
私は得る:
y add https://github.com/capaj/trae.git
yarn add v0.20.3
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: pull
Directory: /home/capaj/.cache/yarn/.tmp/a0218de46c09eeeba3aa6e9bed4d0f17
Output:
error: Pull is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
期待される動作は何ですか?
gitエラーなしで私のgithuburlからtraeパッケージを正常にインストールすることが期待されています。
Ubuntu 16.10、ノード7.5.0
Yarnは、gitの依存関係をキャッシュフォルダーに複製します。
2回目に同じフォルダを再利用しようとすると思いますが、リンクフェーズ中にYarnが一部のファイルをキャッシュにコピーする可能性があるため、難しい場合があります。
HEADが変更された場合、更新する代わりに新しいキャッシュフォルダを作成する必要があると思います。
PRは大歓迎です
この問題に直面した場合はどうすればよいですか?
この問題に直面した場合はどうすればよいですか?
これはマスターで解決されているようですので、私は毎晩最新のものを試してみます。
tmp
ディレクトリを削除すると、問題も修正されます
Directory: /Users/alexprice/Library/Caches/Yarn/v1/.tmp/a71eb20c6f8366926c96610aa7b336f4
....
$ rm -rf ~/Library/Caches/Yarn/v1/.tmp/a71eb20c6f8366926c96610aa7b336f4
最も参考になるコメント
tmp
ディレクトリを削除すると、問題も修正されます