Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for retractions (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            List<Restriction> restrictions = spec.getRestrictions();
            assertEquals(1, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
            VersionRange version = VersionRange.createFromVersion("1.0");
            assertSame(version, VersionRange.createFromVersion("1.0")); // same instance from version cache
            restrictions = version.getRestrictions();
            assertEquals(0, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 44.3K bytes
    - Viewed (0)
  7. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

        public VersionRange restrict(VersionRange restriction) {
            List<Restriction> r1 = this.restrictions;
            List<Restriction> r2 = restriction.restrictions;
            List<Restriction> restrictions;
    
            if (r1.isEmpty() || r2.isEmpty()) {
                restrictions = Collections.emptyList();
            } else {
                restrictions = Collections.unmodifiableList(intersection(r1, r2));
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 07:40:37 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

        }
    
        @Override
        public boolean hasTaskActions() {
            return actions != null && !actions.isEmpty();
        }
    
        @Override
        public void setActions(final List<Action<? super Task>> replacements) {
            taskMutator.mutate("Task.setActions(List<Action>)", new Runnable() {
                @Override
                public void run() {
                    getTaskActions().clear();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  9. plugin/pkg/admission/serviceaccount/admission_test.go

    										LocalObjectReference: api.LocalObjectReference{Name: "foo"},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	}
    	// validate enforces restrictions on secret mounts when operation==create and subresource=='' or operation==update and subresource==ephemeralcontainers"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    			// avoid anonymous interface cycles.
    			hash += 3*hashString(m.Name()) + 5*h.shallowHash(m.Type())
    		}
    
    		// Hash type restrictions.
    		terms, err := typeparams.InterfaceTermSet(t)
    		// if err != nil t has invalid type restrictions.
    		if err == nil {
    			hash += h.hashTermSet(terms)
    		}
    
    		return hash
    
    	case *types.Map:
    		return 9109 + 2*h.Hash(t.Key()) + 3*h.Hash(t.Elem())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top