- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for loadPkgs (0.18 sec)
-
cmd/import-boss/main_test.go
t.Logf("\tseek: %s\n\t in:", str) for _, err := range errs { t.Logf("\t %s", err.Error()) } } } } func TestSimpleForward(t *testing.T) { pkgs, err := loadPkgs("./testdata/simple-fwd/aaa") if err != nil { t.Fatalf("unexpected failure: %v", err) } if len(pkgs) != 1 { t.Fatalf("expected 1 pkg result, got %d", len(pkgs)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 8.8K bytes - Viewed (0) -
cmd/import-boss/main.go
) const ( rulesFileName = ".import-restrictions" goModFile = "go.mod" ) func main() { klog.InitFlags(nil) pflag.CommandLine.AddGoFlagSet(flag.CommandLine) pflag.Parse() pkgs, err := loadPkgs(pflag.Args()...) if err != nil { klog.Errorf("failed to load packages: %v", err) } pkgs = massage(pkgs) boss := newBoss(pkgs) var allErrs []error for _, pkg := range pkgs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0) -
cni/pkg/plugin/plugin_cni_conformance.go
"K8S_POD_UID=a09038c7-df3c-4c0e-8667-487b1fe8055f" k8sArgs := K8sArgs{} if err := types.LoadArgs(kubeletArgs, &k8sArgs); err != nil { t.Fatalf("LoadArgs failed with error: %v", err) } if string(k8sArgs.K8S_POD_NAMESPACE) == "" || string(k8sArgs.K8S_POD_NAME) == "" || string(k8sArgs.K8S_POD_UID) == "" { t.Fatalf("LoadArgs didn't convert args properly, K8S_POD_NAME=\"%s\";K8S_POD_NAMESPACE=\"%s\";K8S_POD_UID=\"%s\"",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 21:50:09 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
// for imported packages (as in 'go mod tidy' in Go 1.17–1.20). skipImportModFiles bool work *par.Queue // reset on each iteration roots []*loadPkg pkgCache *par.Cache[string, *loadPkg] pkgs []*loadPkg // transitive closure of loaded packages and tests; populated in buildStacks } // loaderParams configure the packages loaded by, and the properties reported // by, a loader instance.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0) -
src/cmd/go/internal/modload/buildlist.go
func tidyRoots(ctx context.Context, rs *Requirements, pkgs []*loadPkg) (*Requirements, error) { mainModule := MainModules.mustGetSingleMainModule() if rs.pruning == unpruned { return tidyUnprunedRoots(ctx, mainModule, rs, pkgs) } return tidyPrunedRoots(ctx, mainModule, rs, pkgs) } func updateRoots(ctx context.Context, direct map[string]bool, rs *Requirements, pkgs []*loadPkg, add []module.Version, rootsImported bool) (*Requirements, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/vcs.go
// to run in a different directory, to work around a fossil bug. return str.StringList("fossil", "zip", "-R", ".fossil", "--name", "prefix", extra, "--", rev, target) }, }, } func (r *vcsRepo) loadTags(ctx context.Context) { out, err := Run(ctx, r.dir, r.cmd.tags(r.remote)) if err != nil { return } // Run tag-listing command and extract tags. r.tags = make(map[string]bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 17.3K bytes - Viewed (0) -
cni/pkg/plugin/plugin.go
log.Debugf("istio-cni CmdAdd previous result: %+v", loggedPrevResult) // Determine if running under k8s by checking the CNI args k8sArgs := K8sArgs{} if err := types.LoadArgs(args.Args, &k8sArgs); err != nil { return err } // Check if the workload is running under Kubernetes. podNamespace := string(k8sArgs.K8S_POD_NAMESPACE) podName := string(k8sArgs.K8S_POD_NAME)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 10.7K bytes - Viewed (0)