Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 246 for retractions (0.2 sec)

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

    cmp go.mod go.mod.orig
    
    # Nor does 'go build'.
    [!short] go build ./use
    [!short] ! stderr .
    [!short] cmp go.mod go.mod.orig
    
    # Neither 'go list' nor 'go build' should download go.mod from the version
    # that would list retractions.
    exists $GOPATH/pkg/mod/cache/download/example.com/retract/@v/v1.0.0-bad.mod
    ! exists $GOPATH/pkg/mod/cache/download/example.com/retract/@v/v1.1.0.mod
    
    # Importing a package from a module with a retracted latest version will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_list_update_nolatest.txt

    stdout '^example.com/nolatest v0.0.0$'
    
    # If proxy returns an invalid response, we should see an error.
    env GOPROXY=$testproxy/invalid
    ! go list -m -u example.com/nolatest
    stderr '^go: loading module retractions for example.com/nolatest@v0.0.0: invalid response from proxy "[^"]*": invalid character ''i'' looking for beginning of value$'
    
    -- go.mod --
    module m
    
    go 1.17
    
    require (
    	example.com/nolatest v0.0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 15 00:06:54 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/modfile.go

    	goVersion  string
    	toolchain  string
    	pruning    modPruning
    	require    []module.Version
    	retract    []retraction
    	deprecated string
    }
    
    // A retraction consists of a retracted version interval and rationale.
    // retraction is like modfile.Retract, but it doesn't point to the syntax tree.
    type retraction struct {
    	modfile.VersionInterval
    	Rationale string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_download.txt

    env GO111MODULE=on
    
    # download with version should print nothing.
    # It should not load retractions from the .mod file from the latest version.
    go mod download rsc.io/quote@v1.5.0
    ! stdout .
    ! stderr .
    exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.info
    exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.mod
    exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.zip
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.info
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 04 20:42:35 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/coderepo.go

    	}
    	f, err := modfile.ParseLax("go.mod", data, nil)
    	if err != nil {
    		return nil, err
    	}
    	retractions := make([]modfile.VersionInterval, 0, len(f.Retract))
    	for _, r := range f.Retract {
    		retractions = append(retractions, r.VersionInterval)
    	}
    
    	return func(v string) bool {
    		for _, r := range retractions {
    			if semver.Compare(r.Low, v) <= 0 && semver.Compare(v, r.High) <= 0 {
    				return true
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_edit.txt

    cmpenv go.mod $WORK/go.mod.edit2
    
    # go mod edit -json
    go mod edit -json
    cmpenv stdout $WORK/go.mod.json
    
    # go mod edit -json (retractions with rationales)
    go mod edit -json $WORK/go.mod.retractrationale
    cmp stdout $WORK/go.mod.retractrationale.json
    
    # go mod edit -json (deprecation)
    go mod edit -json $WORK/go.mod.deprecation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/toolchain/select.go

    	defer modload.Reset()
    
    	// See internal/load.PackagesAndErrorsOutsideModule
    	ctx := context.Background()
    	allowed := modload.CheckAllowed
    	if modload.IsRevisionQuery(path, version) {
    		// Don't check for retractions if a specific revision is requested.
    		allowed = nil
    	}
    	noneSelected := func(path string) (version string) { return "none" }
    	_, err := modload.QueryPackages(ctx, path, version, noneSelected, allowed)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/list/list.go

    			for _, p := range all {
    				collectDepsErrors(p)
    			}
    		}
    	}
    
    	// TODO(golang.org/issue/40676): This mechanism could be extended to support
    	// -u without -m.
    	if *listRetracted {
    		// Load retractions for modules that provide packages that will be printed.
    		// TODO(golang.org/issue/40775): Packages from the same module refer to
    		// distinct ModulePublic instance. It would be nice if they could all point
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/query.go

    // version. Any other error indicates the function was unable to determine
    // whether the version should be allowed, for example, the function was unable
    // to fetch or parse a go.mod file containing retractions. Typically, errors
    // other than ErrDisallowed may be ignored.
    type AllowedFunc func(context.Context, module.Version) error
    
    var errQueryDisabled error = queryDisabledError{}
    
    type queryDisabledError struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  10. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractTaskTest.groovy

            "task '" + getTask().getPath() + "'" == getTask().toString()
        }
    
        def "test setActions"() {
            given:
            getTask().setActions([])
    
            when:
            getTask().getActions().add(Actions.doNothing())
            getTask().getActions().add(Actions.doNothing())
    
            then:
            getTask().getActions().size() == 2
    
            when:
            List<Action<? super Task>> actions = new ArrayList<>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top