Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for vendorPkg (0.27 sec)

  1. src/cmd/go/testdata/script/mod_vendor_auto.txt

    # A 'go 1.13' vendor/modules.txt file is not usually sufficient
    # to pass those checks.
    go mod edit -go=1.14
    
    ! go list -f {{.Dir}} -tags tools all
    stderr '^go: inconsistent vendoring in '$WORK[/\\]auto':$'
    stderr '^\texample.com/printversion@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    				return nil, fmt.Errorf("no package file for %q", path)
    			}
    			return os.Open(file)
    		})
    		return importerFunc(func(importPath string) (*types.Package, error) {
    			path, ok := cfg.ImportMap[importPath] // resolve vendoring, etc
    			if !ok {
    				return nil, fmt.Errorf("can't resolve import %q", path)
    			}
    			return compilerImporter.Import(path)
    		})
    	}
    
    	exportTypes = func(*Config, *token.FileSet, *types.Package) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. src/go/types/api.go

    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    type ImporterFrom interface {
    	// Importer is present for backward-compatibility. Calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api.go

    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    type ImporterFrom interface {
    	// Importer is present for backward-compatibility. Calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/gcimporter_test.go

    	// wrong package as complete. By using an "unclean" package path, the
    	// file and package path are different, exposing the problem if present.
    	// The same issue occurs with vendoring.)
    	imports := make(map[string]*types.Package)
    	fset := token.NewFileSet()
    	for i := 0; i < 3; i++ {
    		if _, err := Import(fset, imports, "./././testdata/p", tmpdir, nil); err != nil {
    			t.Fatal(err)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/help/helpdoc.go

    Note, however, that a directory named vendor that itself contains code
    is not a vendored package: cmd/vendor would be a command named vendor,
    and the pattern cmd/... matches it.
    See golang.org/s/go15vendor for more about vendoring.
    
    An import path can also name a package to be downloaded from
    a remote repository. Run 'go help importpath' for details.
    
    Every package in a program must have a unique import path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/init.go

    // (unless ExplicitWriteGoMod is set) or by calling WriteGoMod directly.
    //
    // As a side-effect, LoadModFile may change cfg.BuildMod to "vendor" if
    // -mod wasn't set explicitly and automatic vendoring should be enabled.
    //
    // If LoadModFile or CreateModFile has already been called, LoadModFile returns
    // the existing in-memory requirements (rather than re-reading them from disk).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/load/pkg.go

    const (
    	// ResolveImport means that loadImport should do import path expansion.
    	// That is, ResolveImport means that the import path came from
    	// a source file and has not been expanded yet to account for
    	// vendoring or possible module adjustment.
    	// Every import path should be loaded initially with ResolveImport,
    	// and then the expanded version (for example with the /vendor/ in it)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/test.go

    		// all line up (but RawImports can be shorter than the others).
    		// That is, for 0 ≤ i < len(RawImports),
    		// RawImports[i] is the import string in the program text, and
    		// Imports[i] is the expanded import string (vendoring applied or relative path expanded away).
    		// Any implicitly added imports appear in Imports and Internal.Imports
    		// but not RawImports (because they were not in the source code).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    // so that the ImportPath uniquely identifies a given copy of a package.
    // The Imports, Deps, TestImports, and XTestImports lists also contain these
    // expanded import paths. See golang.org/s/go15vendor for more about vendoring.
    //
    // The error information, if any, is
    //
    //	type PackageError struct {
    //	    ImportStack   []string // shortest path from package named on command line to this one
    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