mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
feat(new_engine): add support for noDeps and noCheckDeps (#1861)
* feat(new engine): add support for noDeps and noCheckDeps * test(new engine): Add tests for -dd and normal split package resolution
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/Jguer/yay/v11/pkg/db"
|
||||
"github.com/Jguer/yay/v11/pkg/dep"
|
||||
@@ -27,12 +28,13 @@ func installLocalPKGBUILD(
|
||||
dbExecutor db.Executor,
|
||||
) error {
|
||||
aurCache := config.Runtime.AURCache
|
||||
noCheck := strings.Contains(config.MFlags, "--nocheck")
|
||||
|
||||
if len(cmdArgs.Targets) < 1 {
|
||||
return errors.New(gotext.Get("no target directories specified"))
|
||||
}
|
||||
|
||||
grapher := dep.NewGrapher(dbExecutor, aurCache, false, settings.NoConfirm, os.Stdout)
|
||||
grapher := dep.NewGrapher(dbExecutor, aurCache, false, settings.NoConfirm, os.Stdout, cmdArgs.ExistsDouble("d", "nodeps"), noCheck)
|
||||
graph := topo.New[string, *dep.InstallInfo]()
|
||||
for _, target := range cmdArgs.Targets {
|
||||
var errG error
|
||||
|
||||
Reference in New Issue
Block a user