Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for pkgdep (0.1 sec)

  1. src/cmd/go/testdata/script/list_test_err.txt

    import "testing"
    
    func TestGeneric[T any](t *testing.T) {}
    
    -- cycleerr/cycleerr_test.go --
    package cycleerr
    
    import (
      _ "testdep_a"
      _ "testdep_cycle"
    )
    
    -- pkgdep/pkgdep.go --
    package pkgdep
    
    -- testdep_a/testdep_a.go --
    package testdep_a
    
    -- testdep_b/testdep_b.go --
    package testdep_b
    
    -- testdep_cycle/testdep_cycle.go --
    package testdep_cycle
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 23:08:19 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/exportdata.go

    		return
    	}
    
    	if string(line) == "!<arch>\n" {
    		// Archive file. Scan to __.PKGDEF.
    		var name string
    		if name, size, err = readGopackHeader(r); err != nil {
    			return
    		}
    
    		// First entry should be __.PKGDEF.
    		if name != "__.PKGDEF" {
    			err = fmt.Errorf("go archive is missing __.PKGDEF")
    			return
    		}
    
    		// Read first line of __.PKGDEF data, so that line
    		// is once again the first line of the input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/internal/buildid/buildid.go

    	"fmt"
    	"internal/xcoff"
    	"io"
    	"io/fs"
    	"os"
    	"strconv"
    	"strings"
    )
    
    var (
    	errBuildIDMalformed = fmt.Errorf("malformed object file")
    
    	bangArch = []byte("!<arch>")
    	pkgdef   = []byte("__.PKGDEF")
    	goobject = []byte("go object ")
    	buildid  = []byte("build id ")
    )
    
    // ReadFile reads the build ID from an archive or executable file.
    func ReadFile(name string) (id string, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 28 21:52:53 UTC 2020
    - 9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/go/testdata/script/test_race_install.txt

    [!race] skip
    [short] skip
    
    mkdir $WORKDIR/tmp/pkg
    go install -race -pkgdir=$WORKDIR/tmp/pkg std
    
    -- go.mod --
    module empty
    
    go 1.16
    -- pkg/pkg.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 01 08:31:45 UTC 2022
    - 159 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_relative_pkgdir.txt

    env GO111MODULE=off
    
    # Regression test for golang.org/issue/21309: accept relative -pkgdir argument.
    
    [short] skip
    
    mkdir $WORK/gocache
    env GOCACHE=$WORK/gocache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 01 08:31:45 UTC 2022
    - 189 bytes
    - Viewed (0)
Back to top