Skip to content
Discussion options

You must be logged in to vote

The git-commit-data part is Yarn Berry's auto-merge: it reads the commit IDs from the conflict markers and asks git for both versions of the lockfile. Even if you switch to git-style markers (--config ui.conflict-marker-style=git), it fails with YN0083: Git returned an error when trying to find the commits pertaining to the conflict, since there's no git merge in progress. (Yarn 1 does accept git-style markers, but not jj's default ones.)

What works for me is to not merge the lockfile at all: resolve package.json first, then take either side of yarn.lock and let yarn regenerate it:

jj resolve --tool :ours yarn.lock
yarn install

yarn install adds whatever the other side introduced, since i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bagedevimo
Comment options

Answer selected by bagedevimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants