snyk 1.846.0 → 1.847.0
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/dist/cli/562.index.js
CHANGED
|
@@ -209564,10 +209564,12 @@ function inspect(root, targetFile, options) {
|
|
|
209564
209564
|
options = { dev: false };
|
|
209565
209565
|
}
|
|
209566
209566
|
const isCoursierPresent = yield plugin_search_1.isPluginInstalled(root, targetFile, constants_1.sbtCoursierPluginName);
|
|
209567
|
-
const isSbtDependencyGraphPresent =
|
|
209567
|
+
const isSbtDependencyGraphPresent = yield plugin_search_1.isPluginInstalled(root, targetFile, constants_1.sbtDependencyGraphPluginName);
|
|
209568
|
+
const isNewSbtDependencyGraphPresent = yield plugin_search_1.isPluginInstalled(root, targetFile, constants_1.sbtDependencyGraphPluginNameNew);
|
|
209568
209569
|
Object.assign(options, { isCoursierPresent });
|
|
209569
209570
|
// in order to apply the pluginInspect, coursier should *not* be present and sbt-dependency-graph should be present
|
|
209570
|
-
|
|
209571
|
+
// we currently don't support the new notation of the sbt-dependency-graph which is 'addDependencyTreePlugin'
|
|
209572
|
+
if (!isCoursierPresent && isSbtDependencyGraphPresent && !isNewSbtDependencyGraphPresent) {
|
|
209571
209573
|
debug('applying plugin inspect');
|
|
209572
209574
|
const res = yield pluginInspect(root, targetFile, options);
|
|
209573
209575
|
if (res) {
|
|
@@ -209585,6 +209587,10 @@ function inspect(root, targetFile, options) {
|
|
|
209585
209587
|
}
|
|
209586
209588
|
}
|
|
209587
209589
|
else {
|
|
209590
|
+
if (isNewSbtDependencyGraphPresent) {
|
|
209591
|
+
// tslint:disable-next-line:no-console
|
|
209592
|
+
console.warn(buildNewSbtDepGraphWarning());
|
|
209593
|
+
}
|
|
209588
209594
|
debug('falling back to legacy inspect');
|
|
209589
209595
|
}
|
|
209590
209596
|
const result = yield legacyInspect(root, targetFile, options);
|
|
@@ -209770,6 +209776,14 @@ function buildArgs(sbtArgs, isCoursierProject, isOutputGraph) {
|
|
|
209770
209776
|
return args;
|
|
209771
209777
|
}
|
|
209772
209778
|
exports.buildArgs = buildArgs;
|
|
209779
|
+
function buildNewSbtDepGraphWarning() {
|
|
209780
|
+
return ('\n\n' +
|
|
209781
|
+
'We currently do not support the new `addDependencyTreePlugin` annotation for the `sbt-dependency-graph` plugin\n' +
|
|
209782
|
+
'Instead, please add the following line to the plugins file: \n' +
|
|
209783
|
+
'addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")\n' +
|
|
209784
|
+
'Further instructions can be found in ' +
|
|
209785
|
+
'https://tinyurl.com/2p9xa3p2\n\n');
|
|
209786
|
+
}
|
|
209773
209787
|
//# sourceMappingURL=index.js.map
|
|
209774
209788
|
|
|
209775
209789
|
/***/ }),
|