-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto detect and merge lockfile conflicts (#3544)
* auto detect and merge lockfile conflicts * Skip over common ancestors when using diff3. * Small code cleanups * Nits
- Loading branch information
Showing
10 changed files
with
226 additions
and
28 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
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 |
---|---|---|
|
@@ -642,7 +642,7 @@ test.concurrent('offline mirror can be enabled from parent dir', (): Promise<voi | |
}; | ||
return runInstall({}, fixture, async (config, reporter) => { | ||
const rawLockfile = await fs.readFile(path.join(config.cwd, 'yarn.lock')); | ||
const lockfile = parse(rawLockfile); | ||
const {object: lockfile} = parse(rawLockfile); | ||
expect(lockfile['[email protected]'].resolved).toEqual( | ||
'https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee', | ||
); | ||
|
@@ -657,7 +657,7 @@ test.concurrent('offline mirror can be enabled from parent dir, with merging of | |
}; | ||
return runInstall({}, fixture, async (config, reporter) => { | ||
const rawLockfile = await fs.readFile(path.join(config.cwd, 'yarn.lock')); | ||
const lockfile = parse(rawLockfile); | ||
const {object: lockfile} = parse(rawLockfile); | ||
expect(lockfile['[email protected]'].resolved).toEqual( | ||
'https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee', | ||
); | ||
|
@@ -672,7 +672,7 @@ test.concurrent('offline mirror can be disabled locally', (): Promise<void> => { | |
}; | ||
return runInstall({}, fixture, async (config, reporter) => { | ||
const rawLockfile = await fs.readFile(path.join(config.cwd, 'yarn.lock')); | ||
const lockfile = parse(rawLockfile); | ||
const {object: lockfile} = parse(rawLockfile); | ||
expect(lockfile['[email protected]'].resolved).toEqual( | ||
'https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee', | ||
); | ||
|
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
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
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
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