Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for VersionError (0.3 sec)

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

    	if err != nil {
    		return nil, p.versionError(version, err)
    	}
    	data, err := p.getBytes(ctx, "@v/"+encVer+".mod")
    	if err != nil {
    		return nil, p.versionError(version, err)
    	}
    	return data, nil
    }
    
    func (p *proxyRepo) Zip(ctx context.Context, dst io.Writer, version string) error {
    	if version != module.CanonicalVersion(version) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/modfile.go

    func CheckExclusions(ctx context.Context, m module.Version) error {
    	for _, mainModule := range MainModules.Versions() {
    		if index := MainModules.Index(mainModule); index != nil && index.exclude[m] {
    			return module.VersionError(m, errExcluded)
    		}
    	}
    	return nil
    }
    
    var errExcluded = &excludedError{}
    
    type excludedError struct{}
    
    func (e *excludedError) Error() string     { return "excluded by go.mod" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/mvs/errors.go

    			}
    			if actual == m {
    				fmt.Fprintf(b, "%v", e.Err)
    			} else {
    				fmt.Fprintf(b, "%s (replaced by %s): %v", m, actual, mErr.Err)
    			}
    		} else {
    			fmt.Fprintf(b, "%v", module.VersionError(m, e.Err))
    		}
    	}
    	return b.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 17:22:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/fetch.go

    		if err != nil {
    			base.Fatalf("verifying %v", module.VersionError(mod, err))
    		}
    		err = hashZip(mod, zip, ziphash)
    		if err != nil {
    			base.Fatalf("verifying %v", module.VersionError(mod, err))
    		}
    		return
    	}
    	h := string(data)
    	if !strings.HasPrefix(h, "h1:") {
    		base.Fatalf("verifying %v", module.VersionError(mod, fmt.Errorf("unexpected ziphash: %q", h)))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/query_test.go

    		allow := tt.allow
    		if allow == "" {
    			allow = "*"
    		}
    		allowed := func(ctx context.Context, m module.Version) error {
    			if ok, _ := path.Match(allow, m.Version); !ok {
    				return module.VersionError(m, ErrDisallowed)
    			}
    			return nil
    		}
    		tt := tt
    		t.Run(strings.ReplaceAll(tt.path, "/", "_")+"/"+tt.query+"/"+tt.current+"/"+allow, func(t *testing.T) {
    			t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/module/module.go

    // A ModuleError indicates an error specific to a module.
    type ModuleError struct {
    	Path    string
    	Version string
    	Err     error
    }
    
    // VersionError returns a [ModuleError] derived from a [Version] and error,
    // or err itself if it is already such an error.
    func VersionError(v Version, err error) error {
    	var mErr *ModuleError
    	if errors.As(err, &mErr) && mErr.Path == v.Path && mErr.Version == v.Version {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/import.go

    				} else {
    					err = fmt.Errorf("replacement directory %s: %w", r.Path, err)
    				}
    				return dir, true, module.VersionError(mod, err)
    			}
    			return dir, true, nil
    		}
    		mod = r
    	}
    
    	if mustHaveSums() && !modfetch.HaveSum(mod) {
    		return "", false, module.VersionError(mod, &sumMissingError{})
    	}
    
    	dir, err = modfetch.Download(ctx, mod)
    	return dir, false, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. pkg/controller/volume/persistentvolume/testing/testing.go

    	core "k8s.io/client-go/testing"
    )
    
    // ErrVersionConflict is the error returned when resource version of requested
    // object conflicts with the object in storage.
    var ErrVersionConflict = errors.New("VersionError")
    
    // VolumeReactor is a core.Reactor that simulates etcd and API server. It
    // stores:
    //   - Latest version of claims volumes saved by the controller.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/init.go

    				},
    			}
    		}
    		if vers != "" && module.CanonicalVersion(vers) == vers {
    			if err := module.CheckPathMajor(vers, pathMajor); err != nil {
    				return "", module.VersionError(module.Version{Path: path, Version: vers}, err)
    			}
    			return vers, nil
    		}
    
    		info, err := Query(ctx, path, vers, "", nil)
    		if err != nil {
    			return "", err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top