Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lookupSumDB (0.24 sec)

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

    // license that can be found in the LICENSE file.
    
    //go:build cmd_go_bootstrap
    
    package modfetch
    
    import "golang.org/x/mod/module"
    
    func useSumDB(mod module.Version) bool {
    	return false
    }
    
    func lookupSumDB(mod module.Version) (string, []string, error) {
    	panic("bootstrap")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 386 bytes
    - Viewed (0)
  2. 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)
  3. 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