Provide a unified way to get the current build's BuildInfo
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### What needs to get done
This should also validate that the provided build plan contains exactly one BuildInfo object.
See: [discussion here](https://github.com/canonical/rockcraft/pull/521#discussion_r1550351690)
### Why it needs to get done
Multi-build build plans are generally used for determining which providers to run. Once we're actually doing the build, we only need a single BuildInfo object.
Evaluation history
No evaluation history available.