mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
Make proxy mode default for npm based managers (#148)
* update npm pkg managers to use proxy mode as default * update config template for default to true for proxy_mode * update e2e for proxy mode * update info cmd for correct proxy mode status * Update config/config.template.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * Update config/config.template.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * Update config/config.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> --------- Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -51,9 +51,9 @@ func executeNpxFlow(ctx context.Context, args []string) error {
|
||||
return fmt.Errorf("failed to create dependency resolver: %w", err)
|
||||
}
|
||||
|
||||
if config.IsProxyModeEnabled() {
|
||||
return flows.ProxyFlow(packageExecutor, packageResolver).Run(ctx, args, parsedCommand)
|
||||
if !config.IsProxyModeEnabled() {
|
||||
return flows.Common(packageExecutor, packageResolver).Run(ctx, args, parsedCommand)
|
||||
}
|
||||
|
||||
return flows.Common(packageExecutor, packageResolver).Run(ctx, args, parsedCommand)
|
||||
return flows.ProxyFlow(packageExecutor, packageResolver).Run(ctx, args, parsedCommand)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user