@uniqbit/mate-core 0.17.2-canary.2 → 0.17.2-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -166,11 +166,9 @@ export async function runInstallCommand(argv: string[], cwd = process.cwd()): Pr
|
|
|
166
166
|
);
|
|
167
167
|
if (drift.length > 0) {
|
|
168
168
|
process.stderr.write(
|
|
169
|
-
`${FRAMEWORK_NAME}: plugin-generated files differ from the committed checkout: ${drift.join(", ")}\n` +
|
|
169
|
+
`${FRAMEWORK_NAME}: warning: plugin-generated files differ from the committed checkout: ${drift.join(", ")}\n` +
|
|
170
170
|
`Prepare and commit them in the companion's authoring flow; the checkout was left unchanged.\n`,
|
|
171
171
|
);
|
|
172
|
-
process.exitCode = 1;
|
|
173
|
-
return false;
|
|
174
172
|
}
|
|
175
173
|
} else {
|
|
176
174
|
await reconcileInstalledCompanion(plan);
|
|
@@ -25,22 +25,16 @@ function changedPaths(cwd: string): string[] {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* drift. Nothing is written back to the live checkout.
|
|
32
|
-
* paths (empty when the
|
|
28
|
+
* Reports what plugins would generate that is not already committed. The
|
|
29
|
+
* projection runs against a disposable clone of the checkout's commit, so edits
|
|
30
|
+
* in the live checkout neither matter nor are touched, and any file that
|
|
31
|
+
* differs afterwards is drift. Nothing is written back to the live checkout.
|
|
32
|
+
* Returns the drifting paths (empty when the commit is complete).
|
|
33
33
|
*/
|
|
34
34
|
export async function verifyTrackedPluginOutputs(
|
|
35
35
|
companionPath: string,
|
|
36
36
|
project: StagedProjection,
|
|
37
37
|
): Promise<string[]> {
|
|
38
|
-
const pending = changedPaths(companionPath);
|
|
39
|
-
if (pending.length > 0) {
|
|
40
|
-
throw new TrackedOutputError(
|
|
41
|
-
`the checkout has uncommitted changes, which frozen setup will not overwrite: ${pending.join(", ")}`,
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
38
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), "mate-staging-"));
|
|
45
39
|
try {
|
|
46
40
|
const staged = path.join(root, "companion");
|