Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for droprequire (0.17 sec)

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

    			base.Fatalf("go: -require=%s: %v", arg, err)
    		}
    	})
    }
    
    // flagDropRequire implements the -droprequire flag.
    func flagDropRequire(arg string) {
    	path := parsePath("droprequire", arg)
    	edits = append(edits, func(f *modfile.File) {
    		if err := f.DropRequire(path); err != nil {
    			base.Fatalf("go: -droprequire=%s: %v", arg, err)
    		}
    	})
    }
    
    // flagExclude implements the -exclude flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_verify.txt

    go mod verify
    
    # Packages below module root should not be mentioned in go.sum.
    rm go.sum
    go mod edit -droprequire rsc.io/quote
    go get rsc.io/quote/buggy
    grep '^rsc.io/quote v1.5.2/go.mod ' go.sum
    ! grep buggy go.sum
    
    # non-existent packages below module root should not be mentioned in go.sum
    go mod edit -droprequire rsc.io/quote
    ! go list rsc.io/quote/morebuggy
    grep '^rsc.io/quote v1.5.2/go.mod ' go.sum
    ! grep buggy go.sum
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_clean_cache.txt

    # 'go clean -modcache' should not download anything before cleaning.
    go mod edit -require rsc.io/quote@v1.99999999.0-not-a-real-version
    go clean -modcache
    ! stderr 'finding rsc.io'
    go mod edit -droprequire rsc.io/quote
    
    ! go clean -modcache m
    stderr 'go: clean -modcache cannot be used with package arguments'
    
    -- go.mod --
    module m
    -- m.go --
    package m
    
    -- r/go.mod --
    module example.com/r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_get_pseudo.txt

    go get github.com/rsc/legacytest@master
    go list -m all
    stdout '^github.com/rsc/legacytest v2\.0\.1-0\.\d{14}-7303f7796364\+incompatible$'
    
    # get should include incompatible tags in "latest" calculation.
    go mod edit -droprequire github.com/rsc/legacytest
    go get github.com/rsc/legacytest@latest
    go list
    go list -m all
    stdout '^github.com/rsc/legacytest v2\.0\.0\+incompatible$'
    
    # v2.0.1-0.pseudo+incompatible
    go get ...test@7303f77
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_edit.txt

    cmpenv go.mod $WORK/go.mod.init
    
    # go mod edits
    go mod edit -droprequire=x.1 -require=x.1@v1.0.0 -require=x.2@v1.1.0 -droprequire=x.2 -exclude='x.1 @ v1.2.0' -exclude=x.1@v1.2.1 -exclude=x.1@v2.0.0+incompatible -replace=x.1@v1.3.0=y.1@v1.4.0 -replace='x.1@v1.4.0 = ../z' -retract=v1.6.0 -retract=[v1.1.0,v1.2.0] -retract=[v1.3.0,v1.4.0] -retract=v1.0.0
    cmpenv go.mod $WORK/go.mod.edit1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_upgrade_patch.txt

    stdout '^patch.example.com/depofdirectpatch v1.0.0'
    
    # ...but 'all@patch' should fail if any of the affected modules do not already
    # have a selected version.
    cp go.mod.orig go.mod
    go mod edit -droprequire=patch.example.com/direct
    cp go.mod go.mod.dropped
    ! go get all@patch
    stderr '^go: all@patch: can''t query version "patch" of module patch.example.com/direct: no existing version is required$'
    cmp go.mod.dropped go.mod
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_load_badchain.txt

    cp go.mod.orig go.mod
    go mod edit -require=example.com/badchain/a@v1.1.0
    ! go list -m all
    cmp stderr list-expected
    
    # Try listing a package that imports a package
    # in a module without a requirement.
    go mod edit -droprequire example.com/badchain/a
    ! go list -mod=mod m/use
    cmp stderr list-missing-expected
    
    ! go list -mod=mod -test m/testuse
    cmp stderr list-missing-test-expected
    
    -- go.mod.orig --
    module m
    
    go 1.13
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 13:05:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/modfile_flag.txt

    grep rsc.io/quote go.alt.sum
    go mod verify
    go mod why rsc.io/quote
    
    
    # 'go list' and other commands with build flags should work.
    # They should update the alternate go.mod when a dependency is missing.
    go mod edit -droprequire rsc.io/quote
    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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_get_pkgtags.txt

    ! go list -deps example.net/cmd/tool
    stderr '^module example\.net/cmd provides package example\.net/cmd/tool and is replaced but not required; to add it:\n\tgo get example\.net/cmd@v0\.1\.0$'
    go mod edit -droprequire example.net/tools
    
    
    # 'go get' makes a best effort to fetch those dependencies, but shouldn't
    # error out if dependencies of tag-guarded files are missing.
    
    go get example.net/tools@v0.1.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_trimpath.txt

    go get rsc.io/fortune
    go install -trimpath rsc.io/fortune
    exec $WORK/paths-a.exe $GOPATH/bin/fortune$GOEXE
    stdout 'binary contains module root: false'
    stdout 'binary contains an empty GOROOT'
    go mod edit -droprequire rsc.io/fortune
    
    # Two binaries built from identical packages in different directories
    # should be identical.
    cd $WORK/b/src/paths
    go build -trimpath -o $WORK/paths-b.exe
    cmp -q $WORK/paths-a.exe $WORK/paths-b.exe
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top