Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for goVERSION (0.32 sec)

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

    		if b.IsCmdList {
    			return nil
    		}
    		return errors.New("binary-only packages are no longer supported")
    	}
    
    	if p.Module != nil && !allowedVersion(p.Module.GoVersion) {
    		return errors.New("module requires Go " + p.Module.GoVersion + " or later")
    	}
    
    	if err := b.checkDirectives(a); err != nil {
    		return err
    	}
    
    	if err := sh.Mkdir(a.Objdir); err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    		Major:        "42",
    		Minor:        "42",
    		GitVersion:   "42",
    		GitCommit:    "34973274ccef6ab4dfaaf86599792fa9c3fe4689",
    		GitTreeState: "Dirty",
    		BuildDate:    time.Now().String(),
    		GoVersion:    goruntime.Version(),
    		Compiler:     goruntime.Compiler,
    		Platform:     fmt.Sprintf("%s/%s", goruntime.GOOS, goruntime.GOARCH),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. src/go/types/issues_test.go

    func f[S ~[]E, E any](S) {}
    
    func _() {
    	f([]string{})
    }
    `
    	// Per the go:build directive, the source must typecheck
    	// even though the (module) Go version is set to go1.17.
    	conf := Config{GoVersion: "go1.17"}
    	mustTypecheck(src, &conf, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/import.go

    				// Go 1.23 and later require vendored packages to be present in modules.txt to be imported.
    				_, ok := vendorPkgModule[path]
    				if ok || (gover.Compare(MainModules.GoVersion(), gover.ExplicitModulesTxtImportVersion) < 0) {
    					mods = append(mods, vendorPkgModule[path])
    					dirs = append(dirs, dir)
    					roots = append(roots, vendorDir)
    				} else {
    					subCommand := "mod"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. src/go/build/build.go

    package build
    
    import (
    	"bytes"
    	"errors"
    	"fmt"
    	"go/ast"
    	"go/build/constraint"
    	"go/doc"
    	"go/token"
    	"internal/buildcfg"
    	"internal/godebug"
    	"internal/goroot"
    	"internal/goversion"
    	"internal/platform"
    	"io"
    	"io/fs"
    	"os"
    	"os/exec"
    	pathpkg "path"
    	"path/filepath"
    	"runtime"
    	"slices"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    	_ "unsafe" // for linkname
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/issues_test.go

    func f[S ~[]E, E any](S) {}
    
    func _() {
    	f([]string{})
    }
    `
    	// Per the go:build directive, the source must typecheck
    	// even though the (module) Go version is set to go1.17.
    	conf := Config{GoVersion: "go1.17"}
    	mustTypecheck(src, &conf, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/coderepo.go

    		goVers := gover.GoModLookup(gomod, "go")
    		if gover.Compare(goVers, gover.Local()) > 0 {
    			return &gover.TooNewError{What: r.ModulePath() + "@" + version, GoVersion: goVers}
    		}
    	} else if !errors.Is(err, fs.ErrNotExist) {
    		return err
    	}
    
    	dl, err := r.code.ReadZip(ctx, rev, subdir, codehost.MaxZipFile)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/help/helpdoc.go

    		If module-aware mode is disabled, GOMOD will be the empty string.
    	GOTOOLDIR
    		The directory where the go tools (compile, cover, doc, etc...) are installed.
    	GOVERSION
    		The version of the installed Go tree, as reported by runtime.Version.
    	`,
    }
    
    var HelpFileType = &base.Command{
    	UsageLine: "filetype",
    	Short:     "file types",
    	Long: `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modget/get.go

    	r.reportChanges(oldReqs, newReqs)
    
    	if gowork := modload.FindGoWork(base.Cwd()); gowork != "" {
    		wf, err := modload.ReadWorkFile(gowork)
    		if err == nil && modload.UpdateWorkGoVersion(wf, modload.MainModules.GoVersion()) {
    			modload.WriteWorkFile(gowork, wf)
    		}
    	}
    }
    
    // parseArgs parses command-line arguments and reports errors.
    //
    // The command-line arguments are of the form path@version or simply path, with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	    Dir        string        // directory holding local copy of files, if any
    //	    GoMod      string        // path to go.mod file describing module, if any
    //	    GoVersion  string        // go version used in module
    //	    Retracted  []string      // retraction information, if any (with -retracted or -u)
    //	    Deprecated string        // deprecation message, if any (with -u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top