gitnexus 1.6.6-rc.23 → 1.6.6-rc.24
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.
|
@@ -48,12 +48,30 @@ export const walkRepositoryPaths = async (repoPath, onProgress) => {
|
|
|
48
48
|
}
|
|
49
49
|
if (skippedLarge > 0) {
|
|
50
50
|
const isDefault = maxFileSizeBytes === DEFAULT_MAX_FILE_SIZE_BYTES;
|
|
51
|
+
const isOverrideUnset = !process.env.GITNEXUS_MAX_FILE_SIZE;
|
|
51
52
|
const suffix = isDefault ? ', likely generated/vendored' : '';
|
|
52
53
|
logger.warn(` Skipped ${skippedLarge} large files (>${maxFileSizeBytes / 1024}KB${suffix})`);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
// Always show at least the first few paths so users can diagnose why
|
|
55
|
+
// edges are missing from a specific file (issue #1659). The full list is
|
|
56
|
+
// gated behind GITNEXUS_VERBOSE=1 to avoid flooding output on repos with
|
|
57
|
+
// many generated/vendored blobs. Sort before slicing so the preview is
|
|
58
|
+
// stable across runs (fs.stat callbacks race within each batch).
|
|
59
|
+
skippedLargePaths.sort();
|
|
60
|
+
const SKIPPED_PREVIEW_CAP = 5;
|
|
61
|
+
const showAll = isVerboseIngestionEnabled() || skippedLargePaths.length <= SKIPPED_PREVIEW_CAP;
|
|
62
|
+
const preview = showAll ? skippedLargePaths : skippedLargePaths.slice(0, SKIPPED_PREVIEW_CAP);
|
|
63
|
+
for (const p of preview) {
|
|
64
|
+
logger.warn(` - ${p}`);
|
|
65
|
+
}
|
|
66
|
+
if (!showAll) {
|
|
67
|
+
const remaining = skippedLargePaths.length - SKIPPED_PREVIEW_CAP;
|
|
68
|
+
logger.warn(` ...and ${remaining} more (set GITNEXUS_VERBOSE=1 to list them all)`);
|
|
69
|
+
}
|
|
70
|
+
// Only hint about the env var when the user has not set it at all. An
|
|
71
|
+
// explicit GITNEXUS_MAX_FILE_SIZE=512 happens to resolve to the same
|
|
72
|
+
// bytes as the default but the operator clearly already knows the knob.
|
|
73
|
+
if (isDefault && isOverrideUnset) {
|
|
74
|
+
logger.warn(` Set GITNEXUS_MAX_FILE_SIZE=<KB> to include files above the default cap.`);
|
|
57
75
|
}
|
|
58
76
|
}
|
|
59
77
|
return entries;
|
package/package.json
CHANGED