anySourceTargetsPlatform reports whether any source opts into the platform destination by listing its reserved name in `destinations`.
(sources []*specs.Source)
| 360 | // anySourceTargetsPlatform reports whether any source opts into the platform |
| 361 | // destination by listing its reserved name in `destinations`. |
| 362 | func anySourceTargetsPlatform(sources []*specs.Source) bool { |
| 363 | for _, s := range sources { |
| 364 | if slices.Contains(s.Destinations, destinationName) { |
| 365 | return true |
| 366 | } |
| 367 | } |
| 368 | return false |
| 369 | } |
| 370 | |
| 371 | // hasPlatformDestination reports whether the spec already declares a `platform` |
| 372 | // destination (a user-provided one the CLI must not overwrite). |
no outgoing calls
no test coverage detected