Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for VetxOnly (0.14 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	fset := token.NewFileSet()
    	results, err := run(fset, cfg, analyzers)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// In VetxOnly mode, the analysis is run only for facts.
    	if !cfg.VetxOnly {
    		if analysisflags.JSON {
    			// JSON output
    			tree := make(analysisflags.JSONTree)
    			for _, res := range results {
    				tree.Add(fset, cfg.ID, res.a.Name, res.diagnostics, res.err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_vet.txt

    go test m/vetcycle
    stdout 'm/vetcycle.*\[no test files\]'
    
    # Test with ...
    ! go test ./vetfail/...
    stderr 'Printf format %d'
    stdout 'ok\s+m/vetfail/p2'
    
    # Check there's no diagnosis of a bad build constraint in vetxonly mode.
    # Use -a so that we need to recompute the vet-specific export data for
    # vetfail/p1.
    go test -a m/vetfail/p2
    ! stderr 'invalid.*constraint'
    
    -- go.mod --
    module m
    
    go 1.16
    -- p1_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 27 20:14:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/action.go

    				IgnoreFail: a.IgnoreFail,
    				Args:       a.Args,
    				Objdir:     a.Objdir,
    				Target:     a.Target,
    				Failed:     a.Failed,
    				Priority:   a.priority,
    				Built:      a.built,
    				VetxOnly:   a.VetxOnly,
    				NeedBuild:  a.needBuild,
    				NeedVet:    a.needVet,
    			}
    			if a.Package != nil {
    				// TODO(rsc): Make this a unique key for a.Package somehow.
    				a.json.Package = a.Package.ImportPath
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    	vcfg := a.Deps[0].vetCfg
    	if vcfg == nil {
    		// Vet config should only be missing if the build failed.
    		return fmt.Errorf("vet config not found")
    	}
    
    	sh := b.Shell(a)
    
    	vcfg.VetxOnly = a.VetxOnly
    	vcfg.VetxOutput = a.Objdir + "vet.out"
    	vcfg.PackageVetx = make(map[string]string)
    
    	h := cache.NewHash("vet " + a.Package.ImportPath)
    	fmt.Fprintf(h, "vet %q\n", b.toolID("vet"))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top