Policy clarified: No need to share a "distribution medium"
Including code built from restricted sources in a distribution medium does not require sharing the code for building the distribution medium. Test: m cts dist Test: m cts dist gts (requires cherry-pick to internal) Change-Id: I7fcd889b11a97f8deaf4de9d72fdadd09deebe30
This commit is contained in:
@@ -72,6 +72,16 @@ func (rs ResolutionSet) AttachesToTarget(target *TargetNode) bool {
|
||||
return isPresent
|
||||
}
|
||||
|
||||
// IsPureAggregate returns true if `target`, which must be in
|
||||
// `AttachesTo()` resolves to a pure aggregate in the resolution.
|
||||
func (rs ResolutionSet) IsPureAggregate(target *TargetNode) bool {
|
||||
_, isPresent := rs[target]
|
||||
if !isPresent {
|
||||
panic(fmt.Errorf("ResolutionSet.IsPureAggregate(%s): not attached to %s", target.Name(), target.Name()))
|
||||
}
|
||||
return target.pure
|
||||
}
|
||||
|
||||
// Resolutions returns the list of resolutions that `attachedTo`
|
||||
// target must resolve. Returns empty list if no conditions apply.
|
||||
func (rs ResolutionSet) Resolutions(attachesTo *TargetNode) ResolutionList {
|
||||
|
Reference in New Issue
Block a user