- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for versionErrorf (0.32 sec)
-
src/go/types/expr.go
} // len(s) > 2 if strings.Contains(s, "_") { check.versionErrorf(lit, go1_13, "underscore in numeric literal") return } if s[0] != '0' { return } radix := s[1] if radix == 'b' || radix == 'B' { check.versionErrorf(lit, go1_13, "binary literal") return } if radix == 'o' || radix == 'O' { check.versionErrorf(lit, go1_13, "0o/0O-style octal literal") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
} // len(s) > 2 if strings.Contains(s, "_") { check.versionErrorf(lit, go1_13, "underscore in numeric literal") return } if s[0] != '0' { return } radix := s[1] if radix == 'b' || radix == 'B' { check.versionErrorf(lit, go1_13, "binary literal") return } if radix == 'o' || radix == 'O' { check.versionErrorf(lit, go1_13, "0o/0O-style octal literal") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
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) -
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) -
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) -
src/cmd/go/internal/mvs/errors.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 17:22:28 UTC 2023 - 3K bytes - Viewed (0) -
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) -
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) -
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) -
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)