Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lookupSumDB (0.08 sec)

  1. src/cmd/go/internal/modfetch/sumdb.go

    		if must {
    			return true
    		}
    	}
    	return cfg.GOSUMDB != "off" && !module.MatchPrefixPatterns(cfg.GONOSUMDB, mod.Path)
    }
    
    // lookupSumDB returns the Go checksum database's go.sum lines for the given module,
    // along with the name of the database.
    func lookupSumDB(mod module.Version) (dbname string, lines []string, err error) {
    	dbOnce.Do(func() {
    		dbName, db, dbErr = dbDial()
    	})
    	if dbErr != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:02:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/fetch.go

    	modWithoutSuffix := mod
    	noun := "module"
    	if before, found := strings.CutSuffix(mod.Version, "/go.mod"); found {
    		noun = "go.mod"
    		modWithoutSuffix.Version = before
    	}
    
    	db, lines, err := lookupSumDB(mod)
    	if err != nil {
    		return module.VersionError(modWithoutSuffix, fmt.Errorf("verifying %s: %v", noun, err))
    	}
    
    	have := mod.Path + " " + mod.Version + " " + h
    	prefix := mod.Path + " " + mod.Version + " h1:"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top