Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for loadPkgs (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/go/internal/imports/tags.go

    // It includes GOOS, GOARCH, the compiler, possibly "cgo",
    // release tags like "go1.13", and user-specified build tags.
    func Tags() map[string]bool {
    	tagsOnce.Do(func() {
    		tags = loadTags()
    	})
    	return tags
    }
    
    func loadTags() map[string]bool {
    	tags := map[string]bool{
    		cfg.BuildContext.GOOS:     true,
    		cfg.BuildContext.GOARCH:   true,
    		cfg.BuildContext.Compiler: true,
    	}
    	if cfg.BuildContext.CgoEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:43:59 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/sys_windows_arm.s

    	// SetLastError(0)
    	MOVW	$0, R0
    	MRC	15, 0, R1, C13, C0, 2
    	MOVW	R0, 0x34(R1)
    
    	MOVW	8(R4), R12	// libcall->args
    
    	// Do we have more than 4 arguments?
    	MOVW	4(R4), R0	// libcall->n
    	SUB.S	$4, R0, R2
    	BLE	loadregs
    
    	// Reserve stack space for remaining args
    	SUB	R2<<2, R13
    	BIC	$0x7, R13	// alignment for ABI
    
    	// R0: count of arguments
    	// R1:
    	// R2: loop counter, from 0 to (n-4)
    	// R3: scratch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/main/java/jcifs/smb/DfsImpl.java

                    log.debug("Removing expired " + links.map);
                }
                roots.remove(root);
                links = null;
            }
    
            if ( links == null ) {
                log.trace("Loadings roots");
                String refServerName = domain;
                dr = fetchRootReferral(tf, domain, root, refServerName);
                links = cacheRootReferral(tf, domain, root, roots, dr, links);
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
Back to top