Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for goFiles (0.11 sec)

  1. src/cmd/go/internal/work/exec.go

    					continue // Not covering this file.
    				}
    				if err := b.cover(a, coverFile, sourceFile, cover.Var); err != nil {
    					return err
    				}
    			}
    			if i < len(gofiles) {
    				gofiles[i] = coverFile
    			} else {
    				cgofiles[i-len(gofiles)] = coverFile
    			}
    		}
    
    		if cfg.Experiment.CoverageRedesign {
    			if len(infiles) != 0 {
    				// Coverage instrumentation creates new top level
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/test.go

    		ptest = new(Package)
    		*ptest = *p
    		ptest.Error = ptestErr
    		ptest.Incomplete = incomplete
    		ptest.ForTest = p.ImportPath
    		ptest.GoFiles = nil
    		ptest.GoFiles = append(ptest.GoFiles, p.GoFiles...)
    		ptest.GoFiles = append(ptest.GoFiles, p.TestGoFiles...)
    		ptest.Target = ""
    		// Note: The preparation of the vet config requires that common
    		// indexes in ptest.Imports and ptest.Internal.RawImports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/gc.go

    	// same basename, so go from the overlay contents file path (passed to the compiler)
    	// to the path the disk path would be rewritten to.
    
    	cgoFiles := make(map[string]bool)
    	for _, f := range a.Package.CgoFiles {
    		cgoFiles[f] = true
    	}
    
    	// TODO(matloob): Higher up in the stack, when the logic for deciding when to make copies
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    	Dir                       string // (unused)
    	ImportPath                string // package path
    	GoVersion                 string // minimum required Go version, such as "go1.21.0"
    	GoFiles                   []string
    	NonGoFiles                []string
    	IgnoredFiles              []string
    	ImportMap                 map[string]string // maps import path to package path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. cmd/import-boss/main.go

    	return errs
    }
    
    // packageDir tries to figure out the directory of the specified package.
    func packageDir(pkg *packages.Package) string {
    	if len(pkg.GoFiles) > 0 {
    		return filepath.Dir(pkg.GoFiles[0])
    	}
    	if len(pkg.IgnoredFiles) > 0 {
    		return filepath.Dir(pkg.IgnoredFiles[0])
    	}
    	return ""
    }
    
    type FileFormat struct {
    	Rules        []Rule
    	InverseRules []Rule
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/gccgo.go

    	return nil
    }
    
    func (tools gccgoToolchain) asm(b *Builder, a *Action, sfiles []string) ([]string, error) {
    	p := a.Package
    	var ofiles []string
    	for _, sfile := range sfiles {
    		base := filepath.Base(sfile)
    		ofile := a.Objdir + base[:len(base)-len(".s")] + ".o"
    		ofiles = append(ofiles, ofile)
    		sfile, _ = fsys.OverlayPath(mkAbs(p.Dir, sfile))
    		defs := []string{"-D", "GOOS_" + cfg.Goos, "-D", "GOARCH_" + cfg.Goarch}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/pkg.go

    // exeFromFiles returns an executable name for a package
    // using the first element in GoFiles or CgoFiles collections without the prefix.
    //
    // Returns empty string in case of empty collection.
    func (p *Package) exeFromFiles() string {
    	var src string
    	if len(p.GoFiles) > 0 {
    		src = p.GoFiles[0]
    	} else if len(p.CgoFiles) > 0 {
    		src = p.CgoFiles[0]
    	} else {
    		return ""
    	}
    	_, elem := filepath.Split(src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/cmd/go/internal/list/list.go

    files presented to the compiler. Typically this means that it repeats
    the files listed in GoFiles and then also adds the Go code generated
    by processing CgoFiles and SwigFiles. The Imports list contains the
    union of all imports from both GoFiles and CompiledGoFiles.
    
    The -deps flag causes list to iterate over not just the named packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. src/cmd/dist/build.go

    		if !t.IsZero() && !strings.HasSuffix(p, ".a") && !shouldbuild(p, pkg) {
    			return false
    		}
    		if strings.HasSuffix(p, ".go") {
    			gofiles = append(gofiles, p)
    		} else if strings.HasSuffix(p, ".s") {
    			sfiles = append(sfiles, p)
    		}
    		if t.After(ttarg) {
    			stale = true
    		}
    		return true
    	})
    
    	// If there are no files to compile, we're done.
    	if len(files) == 0 {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	// Get list of packages in stdlib. Filter out test-only packages with {{if .GoFiles}} check.
    	var stderr bytes.Buffer
    	cmd := exec.Command("go", "list", "-f", "{{if .GoFiles}}{{.ImportPath}}{{end}}", "std")
    	cmd.Stderr = &stderr
    	out, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top