The GitHub Actions job "End to End" on grails-core.git/feat/indy-dual-artifacts 
has failed.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
b9ed461d1baf92b705850cd39c3b69784883d794 / Scott Murphy Heiberg 
<[email protected]>
refactor: select the noindy artifact by classifier instead of a published 
variant

Publishing the noindy jar as a secondary variant of apiElements and
runtimeElements made every module ambiguous to a configuration that
requests no attributes at all -- the shape the tck and CLI companion probe
configurations use -- and CI failed across the board on it.

No attribute rule can repair that. A disambiguation rule is handed only the
values candidates declare, so the variant without the attribute never
appears among them and cannot be preferred; instrumenting the rule shows
`consumer=null candidates=[false]`. Declaring the attribute on both
variants instead would resolve it here but break every plain consumer of a
Grails artifact, which is where this started.

The noindy jar is now published as an ordinary Maven classifier and adds
nothing to the module's metadata, so no consumer's resolution changes.
Selection is assembled on the consuming side: an application that sets
indy = false registers a component metadata rule deriving a variant from
the classifier for the modules it lists in grails.noindyModules. That
variant exists only inside the build that opted in, whose schema carries
the rules needed to choose, so the ambiguity is unreachable rather than
merely fixed.

The list is required because a rule applied to a module that publishes no
such classifier -- or to a platform, which publishes no jar -- fails when
the missing file is fetched. Modules advertise theirs through the
Grails-Noindy-Artifact manifest attribute, mirroring Grails-Cli-Artifact,
so the list can later be discovered rather than written.

Component metadata rules do not apply to project dependencies, so a
composite or multi-project build always resolves the main artifact.

Report URL: https://github.com/apache/grails-core/actions/runs/32207638374

With regards,
GitHub Actions via GitBox

Reply via email to