Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ActionID (0.37 sec)

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

    	a.actionID = actionHash
    	actionID := buildid.HashToString(actionHash)
    	if a.json != nil {
    		a.json.ActionID = actionID
    	}
    	contentID := actionID // temporary placeholder, likely unique
    	a.buildID = actionID + buildIDSeparator + contentID
    
    	// Executable binaries also record the main build ID in the middle.
    	// See "Build IDs" comment above.
    	if a.Mode == "link" {
    		mainpkg := a.Deps[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cache/cache_test.go

    			t.Fatalf("addIndexEntry: %v", err)
    		}
    		id := ActionID(dummyID(i))
    		entry, err := c.Get(id)
    		if err != nil {
    			t.Fatalf("Get(%x): %v", id, err)
    		}
    		if entry.OutputID != dummyID(i*99) || entry.Size != int64(i)*101 {
    			t.Errorf("Get(%x) = %x, %d, want %x, %d", id, entry.OutputID, entry.Size, dummyID(i*99), int64(i)*101)
    		}
    	}
    	for i := 0; i < n; i++ {
    		id := ActionID(dummyID(i))
    		entry, err := c.Get(id)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/cache/cache.go

    	"strconv"
    	"strings"
    	"time"
    
    	"cmd/go/internal/lockedfile"
    	"cmd/go/internal/mmap"
    )
    
    // An ActionID is a cache action key, the hash of a complete description of a
    // repeatable computation (command line, environment variables,
    // input file contents, executable contents).
    type ActionID [HashSize]byte
    
    // An OutputID is a cache output key, the hash of an output of a computation.
    type OutputID [HashSize]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cache/prog.go

    	ID int64
    
    	// Command is the type of request.
    	// The cmd/go tool will only send commands that were declared
    	// as supported by the child.
    	Command ProgCmd
    
    	// ActionID is non-nil for get and puts.
    	ActionID []byte `json:",omitempty"` // or nil if not used
    
    	// ObjectID is set for Type "put" and "output-file".
    	ObjectID []byte `json:",omitempty"` // or nil if not used
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 19:23:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/read.go

    type Module struct {
    	modroot string
    	d       *decoder
    	n       int // number of packages
    }
    
    // moduleHash returns an ActionID corresponding to the state of the module
    // located at filesystem path modroot.
    func moduleHash(modroot string, ismodcache bool) (cache.ActionID, error) {
    	// We expect modules stored within the module cache to be checksummed and
    	// immutable, and we expect released modules within GOROOT to change only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  6. src/cmd/buildid/buildid.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	matches, hash, err := buildid.FindAndHash(f, id, 0)
    	f.Close()
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// <= go 1.7 doesn't embed the contentID or actionID, so no slash is present
    	if !strings.Contains(id, "/") {
    		log.Fatalf("%s: build ID is a legacy format...binary too old for this tool", file)
    	}
    
    	newID := id[:strings.LastIndex(id, "/")] + "/" + buildid.HashToString(hash)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    func testAndInputKey(testID, testInputsID cache.ActionID) cache.ActionID {
    	return cache.Subkey(testID, fmt.Sprintf("inputs:%x", testInputsID))
    }
    
    func (c *runCache) saveOutput(a *work.Action) {
    	if c.id1 == (cache.ActionID{}) && c.id2 == (cache.ActionID{}) {
    		return
    	}
    
    	// See comment about two-level lookup in tryCacheWithID above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/action.go

    	Objdir   string         // directory for intermediate objects
    	Target   string         // goal of the action: the created package or executable
    	built    string         // the actual created package or executable
    	actionID cache.ActionID // cache ID of action input
    	buildID  string         // build ID of action output
    
    	VetxOnly  bool       // Mode=="vet": only being called to supply info about dependencies
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/exec.go

    	if err != nil {
    		return err
    	}
    	defer f.Close()
    	_, _, err = c.Put(cache.Subkey(a.actionID, name), f)
    	return err
    }
    
    func (b *Builder) findCachedObjdirFile(a *Action, c cache.Cache, name string) (string, error) {
    	file, _, err := cache.GetFile(c, cache.Subkey(a.actionID, name))
    	if err != nil {
    		return "", fmt.Errorf("loading cached file %s: %w", name, err)
    	}
    	return file, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/gc.go

    	if a.Mode == "link" {
    		// For linking, use the main package's build ID instead of
    		// the binary's build ID, so it is the same hash used in
    		// compiling and linking.
    		// When compiling, we use actionID/actionID (instead of
    		// actionID/contentID) as a temporary build ID to compute
    		// the hash. Do the same here. (See buildid.go:useCache)
    		// The build ID matters because it affects the overall hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top