Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for vendorPkg (0.27 sec)

  1. src/cmd/go/internal/modcmd/init.go

    must not already exist.
    
    Init accepts one optional argument, the module path for the new module. If the
    module path argument is omitted, init will attempt to infer the module path
    using import comments in .go files, vendoring tool configuration files (like
    Gopkg.lock), and the current directory (if in GOPATH).
    
    See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
    `,
    	Run: runInit,
    }
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_vendor_build.txt

    stdout rsc.io/sampler
    ! grep 'rsc.io/sampler v1.3.0' go.mod
    
    # update to v1.3.1, now indirect in go.mod.
    go get rsc.io/sampler@v1.3.1
    grep 'rsc.io/sampler v1.3.1 // indirect' go.mod
    cp go.mod go.mod.good
    
    # vendoring can but should not need to make changes.
    go mod vendor
    cmp go.mod go.mod.good
    
    # go list -mod=vendor (or go build -mod=vendor) must not modify go.mod.
    # golang.org/issue/26704
    go list -mod=vendor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 931 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/work_vendor_prune.txt

    # This test exercises that vendoring works properly using the workspace in the
    # the work_prune test case.
    
    go work vendor
    cmp vendor/modules.txt modules.txt.want
    cmp vendor/example.com/b/b.go b/b.go
    cmp vendor/example.com/q/q.go q1_1_0/q.go
    go list -m -f '{{.Version}}' example.com/q
    stdout '^v1.1.0$'
    
    go list -f '{{.Dir}}' example.com/q
    stdout $GOPATH[\\/]src[\\/]vendor[\\/]example.com[\\/]q
    go list -f '{{.Dir}}' example.com/b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 01:59:23 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_vendor.txt

    env GO111MODULE=on
    
    # Without vendoring, a build should succeed unless -mod=vendor is set.
    [!short] go build
    [!short] ! go build -mod=vendor
    
    # Without vendoring, 'go list' should report the replacement directory for
    # a package in a replaced module.
    go list -f {{.Dir}} x
    stdout 'src[\\/]x'
    
    # 'go mod vendor' should copy all replaced modules to the vendor directory.
    go mod vendor -v
    stderr '^# x v1.0.0 => ./x'
    stderr '^x'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/go/build/vendor_test.go

    // The prefixes are component-wise; for example, "golang.org/x"
    // matches "golang.org/x/build" but not "golang.org/xyz".
    //
    // DO NOT ADD TO THIS LIST TO FIX BUILDS.
    // Vendoring a new package requires prior discussion.
    var allowedPackagePrefixes = []string{
    	"golang.org/x",
    	"github.com/google/pprof",
    	"github.com/ianlancetaylor/demangle",
    	"rsc.io/markdown",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 16:29:14 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/README.vendor

    Vendoring in std and cmd
    ========================
    
    The Go command maintains copies of external packages needed by the
    standard library in the src/vendor and src/cmd/vendor directories.
    
    There are two modules, std and cmd, defined in src/go.mod and
    src/cmd/go.mod. When a package outside std or cmd is imported
    by a package inside std or cmd, the import path is interpreted
    as if it had a "vendor/" prefix. For example, within "crypto/tls",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/cmd/doc/dirs.go

    type moduleJSON struct {
    	Path, Dir, GoVersion string
    }
    
    var modFlagRegexp = regexp.MustCompile(`-mod[ =](\w+)`)
    
    // vendorEnabled indicates if vendoring is enabled.
    // Inspired by setDefaultBuildMod in modload/init.go
    func vendorEnabled() (*moduleJSON, bool, error) {
    	mainMod, go114, err := getMainModuleAnd114()
    	if err != nil {
    		return nil, false, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/work_vendor_prune_all.txt

    # This test exercises that vendoring works properly using the workspace in the
    # the work_prune test case.
    
    go work vendor
    cmp vendor/modules.txt modules.txt.want
    go list -f '{{with .Module}}{{.Path}}@{{.Version}}{{end}}' all
    cmp stdout want_versions
    
    go list -f '{{.Dir}}' example.com/q
    stdout $GOPATH[\\/]src[\\/]vendor[\\/]example.com[\\/]q
    go list -f '{{.Dir}}' example.com/b
    stdout $GOPATH[\\/]src[\\/]vendor[\\/]example.com[\\/]b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 01:59:23 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/modfile_flag.txt

    go list -mod=mod .
    grep rsc.io/quote go.alt.mod
    go build -n -mod=mod .
    go test -n -mod=mod .
    go get rsc.io/quote
    
    
    # 'go mod vendor' should work.
    go mod vendor
    exists vendor
    
    # Automatic vendoring should be broken by editing an explicit requirement
    # in the alternate go.mod file.
    go mod edit -require rsc.io/quote@v1.5.1
    ! go list .
    go list -mod=mod
    rm vendor
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_list_retract.txt

    # 'go list -mod=vendor -retracted' reports an error.
    go mod vendor
    ! go list -m -retracted -mod=vendor
    stderr '^go list -retracted cannot be used when vendoring is enabled$'
    rm vendor
    
    # 'go list -retracted' reports an error in GOPATH mode.
    env GO111MODULE=off
    ! go list -retracted
    stderr '^go list -retracted can only be used in module-aware mode$'
    env GO111MODULE=
    
    # 'go list pkg' does not show retraction.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 13 00:19:50 UTC 2021
    - 4.8K bytes
    - Viewed (0)
Back to top