You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -231,8 +232,9 @@ var flagsMap = map[string]components.Flag{
231
232
"Set to false if you wish to not use the gradle or maven wrapper.",
232
233
components.WithBoolDefaultValue(true),
233
234
),
234
-
WorkingDirs: components.NewStringFlag(WorkingDirs, "A comma-separated list of relative working directories, to determine audit targets locations."),
235
-
OutputDir: components.NewStringFlag(OutputDir, "Target directory to save partial results to.", components.SetHiddenStrFlag()),
235
+
WorkingDirs: components.NewStringFlag(WorkingDirs, "A comma-separated list of relative working directories, to determine audit targets locations."),
236
+
OutputDir: components.NewStringFlag(OutputDir, "Target directory to save partial results to.", components.SetHiddenStrFlag()),
237
+
SkipAutoInstall: components.NewBoolFlag(SkipAutoInstall, "Set to true to skip auto-install of dependencies in un-built modules. Currently supported for Yarn and NPM only.", components.SetHiddenBoolFlag()),
236
238
ExclusionsAudit: components.NewStringFlag(
237
239
Exclusions,
238
240
"List of exclusions separated by semicolons, utilized to skip sub-projects from undergoing an audit. These exclusions may incorporate the * and ? wildcards.",
// We verify the project's installation status by examining the presence of the yarn.lock file and the presence of an installation command provided by the user.
141
+
// If install command was provided - we install
142
+
// If yarn.lock is missing, we should install unless the user has explicitly disabled auto-install. In this case we return an error
143
+
// Notice!: If alterations are made manually in the package.json file, it necessitates a manual update to the yarn.lock file as well.
err=fmt.Errorf("failed to check the existence of '%s' file: %s", filepath.Join(currentDir, yarn.YarnLockFileName), err.Error())
143
148
return
144
149
}
145
150
146
-
// We verify the project's installation status by examining the presence of the yarn.lock file and the presence of an installation command provided by the user.
147
-
// Notice!: If alterations are made manually in the package.json file, it necessitates a manual update to the yarn.lock file as well.
// Executes the user-defined 'install' command; if absent, defaults to running an 'install' command with specific flags suited to the current yarn version.
0 commit comments