Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for newRequirements (0.25 sec)

  1. src/cmd/go/internal/modload/buildlist.go

    }
    
    // newRequirements returns a new requirement set with the given root modules.
    // The dependencies of the roots will be loaded lazily at the first call to the
    // Graph method.
    //
    // The rootModules slice must be sorted according to gover.ModSort.
    // The caller must not modify the rootModules slice or direct map after passing
    // them to newRequirements.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/work.txt

    stderr 'go.work:6: path .* appears multiple times in workspace'
    cp go.work.backup go.work
    
    cp go.work.d go.work
    go work use # update go version
    go run example.com/d
    
    # Test that we don't run into "newRequirements called with unsorted roots"
    # panic with unsorted main modules.
    cp go.work.backwards go.work
    go work use # update go version
    go run example.com/d
    
    # Test that command-line-arguments work inside and outside modules.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/init.go

    			roots = []module.Version{
    				{Path: "go", Version: goVersion},
    				{Path: "toolchain", Version: gover.LocalToolchain()},
    			}
    		}
    		rawGoVersion.Store(mainModule, goVersion)
    		requirements = newRequirements(pruning, roots, direct)
    		if cfg.BuildMod == "vendor" {
    			// For issue 56536: Some users may have GOFLAGS=-mod=vendor set.
    			// Make sure it behaves as though the fake module is vendored
    			// with no dependencies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/edit.go

    	direct := make(map[string]bool, len(rs.direct))
    	for _, m := range roots {
    		if rs.direct[m.Path] {
    			direct[m.Path] = true
    		}
    	}
    	edited = newRequirements(rootPruning, roots, direct)
    
    	// If we ended up adding a dependency that upgrades our go version far enough
    	// to activate pruning, we must convert the edited Requirements in order to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/load.go

    			// version higher than the go.mod version adds nothing.
    			compatVersion = goVersion
    		}
    		if compatPruning := pruningForGoVersion(compatVersion); compatPruning != ld.requirements.pruning {
    			compatRS := newRequirements(compatPruning, ld.requirements.rootModules, ld.requirements.direct)
    			ld.checkTidyCompatibility(ctx, compatRS, compatVersion)
    
    			for m := range keepSums(ctx, ld, compatRS, loadedZipSumsOnly) {
    				keep[m] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  6. pkg/kube/namespace/filter.go

    		return labels.Everything(), nil
    	}
    	requirements := make([]labels.Requirement, 0, len(ps.MatchLabels)+len(ps.MatchExpressions))
    	for k, v := range ps.MatchLabels {
    		r, err := labels.NewRequirement(k, selection.Equals, []string{v})
    		if err != nil {
    			return nil, err
    		}
    		requirements = append(requirements, *r)
    	}
    	for _, expr := range ps.MatchExpressions {
    		var op selection.Operator
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/labels/selector.go

    // The zero value of Requirement is invalid.
    // Requirement implements both set based match and exact match
    // Requirement should be initialized via NewRequirement constructor for creating a valid Requirement.
    // +k8s:deepcopy-gen=true
    type Requirement struct {
    	key      string
    	operator selection.Operator
    	// In huge majority of cases we have at most one value here.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 31.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        return requirements;
      }
    
      // Used by incorporateRequirements() only
      private static void checkConflict(
          String earlierRequirement,
          Set<Feature<?>> earlierFeatures,
          String newRequirement,
          Set<Feature<?>> newFeatures,
          Object source)
          throws ConflictingRequirementsException {
        if (!Collections.disjoint(newFeatures, earlierFeatures)) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 15:08:35 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    					BadValue: selection.Operator("unsupportedOp"),
    				},
    			},
    		},
    	}
    	for _, rc := range requirementConstructorTests {
    		_, err := NewRequirement(rc.Key, rc.Op, rc.Vals.List())
    		if diff := cmp.Diff(rc.WantErr.ToAggregate(), err, ignoreDetail); diff != "" {
    			t.Errorf("NewRequirement test %v returned unexpected error (-want,+got):\n%s", rc.Key, diff)
    		}
    	}
    }
    
    func TestToString(t *testing.T) {
    	var req Requirement
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  10. operator/pkg/helmreconciler/prune.go

    			usList = append(usList, ioplist)
    		}
    	}
    	for _, gvk := range gvkList {
    		objects := &unstructured.UnstructuredList{}
    		objects.SetGroupVersionKind(gvk)
    		componentRequirement, err := klabels.NewRequirement(IstioComponentLabelStr, selection.Exists, nil)
    		if err != nil {
    			return usList, err
    		}
    		if includeClusterResources {
    			s := klabels.NewSelector()
    			err = h.client.List(context.TODO(), objects,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top