Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for pkgdep (0.12 sec)

  1. src/cmd/pack/pack.go

    			goto close
    		}
    
    		for _, e := range aro.Entries {
    			if e.Type != archive.EntryPkgDef {
    				continue
    			}
    			if verbose {
    				fmt.Printf("__.PKGDEF # %s\n", file)
    			}
    			ar.a.AddEntry(archive.EntryPkgDef, "__.PKGDEF", 0, 0, 0, 0644, e.Size, io.NewSectionReader(f, e.Offset, e.Size))
    			done = true
    		}
    	close:
    		f.Close()
    		if done {
    			break
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/gcimporter.go

    // in prior Go releases) for the package located in pkgDir.
    //
    // (We use the package's directory instead of its import path
    // mainly to simplify handling of the packages in src/vendor
    // and cmd/vendor.)
    func lookupGorootExport(pkgDir string) (string, error) {
    	f, ok := exportMap.Load(pkgDir)
    	if !ok {
    		var (
    			listOnce   sync.Once
    			exportPath string
    			err        error
    		)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/internal/coverage/rtcov/rtcov.go

    		CounterMode:        cmode,
    		CounterGranularity: cgran,
    	})
    	if pkgid != -1 {
    		if Meta.PkgMap == nil {
    			Meta.PkgMap = make(map[int]int)
    		}
    		if _, ok := Meta.PkgMap[pkgid]; ok {
    			return 0
    		}
    		// Record the real slot (position on meta-list) for this
    		// package; we'll use the map to fix things up later on.
    		Meta.PkgMap[pkgid] = slot
    	}
    
    	// ID zero is reserved as invalid.
    	return uint32(slot + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/pkg.go

    		// instantiations.
    		p.Prefix = path
    	} else {
    		p.Prefix = objabi.PathToPrefix(path)
    	}
    	p.Syms = make(map[string]*Sym)
    	pkgMap[path] = p
    
    	return p
    }
    
    func PkgMap() map[string]*Pkg {
    	return pkgMap
    }
    
    var nopkg = &Pkg{
    	Syms: make(map[string]*Sym),
    }
    
    func (pkg *Pkg) Lookup(name string) *Sym {
    	s, _ := pkg.LookupOK(name)
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:28:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/search.go

    						fmt.Fprintf(os.Stderr, "warning: ignoring symlink %s\n", pkgDir)
    					}
    				}
    				return nil
    			}
    
    			if !want {
    				return filepath.SkipDir
    			}
    			// Stop at module boundaries.
    			if (prune&pruneGoMod != 0) && pkgDir != root {
    				if fi, err := os.Stat(filepath.Join(pkgDir, "go.mod")); err == nil && !fi.IsDir() {
    					return filepath.SkipDir
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/report/package.go

    import "regexp"
    
    // pkgRE extracts package name, It looks for the first "." or "::" that occurs
    // after the last "/". (Searching after the last / allows us to correctly handle
    // names that look like "some.url.com/foo.bar".)
    var pkgRE = regexp.MustCompile(`^((.*/)?[\w\d_]+)(\.|::)([^/]*)$`)
    
    // packageName returns the package name of the named symbol, or "" if not found.
    func packageName(name string) string {
    	m := pkgRE.FindStringSubmatch(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 512 bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/read.go

    // located at filesystem path pkgdir.
    func dirHash(modroot, pkgdir string) (cache.ActionID, error) {
    	h := cache.NewHash("moduleIndex")
    	fmt.Fprintf(h, "modroot %s\n", modroot)
    	fmt.Fprintf(h, "package %s %s %v\n", runtime.Version(), indexVersion, pkgdir)
    	entries, err := fsys.ReadDir(pkgdir)
    	if err != nil {
    		// pkgdir might not be a directory. give up on hashing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. src/runtime/race/output_test.go

    	"fmt"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestOutput(t *testing.T) {
    	pkgdir := t.TempDir()
    	out, err := exec.Command(testenv.GoToolPath(t), "install", "-race", "-pkgdir="+pkgdir, "testing").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go install -race: %v\n%s", err, out)
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 20:44:25 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. src/internal/coverage/cfile/emit.go

    		return fmt.Errorf("error: meta-data not available (binary not built with -cover?)")
    	}
    
    	// Ask the runtime for the list of coverage counter symbols.
    	pm := rtcov.Meta.PkgMap
    	s := &emitState{
    		counterlist: cl,
    		pkgmap:      pm,
    		outdir:      outdir,
    		debug:       os.Getenv("GOCOVERDEBUG") != "",
    	}
    
    	// Open output file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. src/debug/buildinfo/buildinfo_test.go

    		}
    		return outPath
    	}
    
    	buildWithGOPATH := func(t *testing.T, goos, goarch, buildmode string) string {
    		gopathDir := t.TempDir()
    		pkgDir := filepath.Join(gopathDir, "src/example.com/m")
    		if err := os.MkdirAll(pkgDir, 0777); err != nil {
    			t.Fatal(err)
    		}
    		helloPath := filepath.Join(pkgDir, "hello.go")
    		helloData := []byte("package main\nfunc main() {}\n")
    		if err := os.WriteFile(helloPath, helloData, 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top