Resolve package version metadata for the current runtime location.
Optional package/runtime directory overrides for tests.
Version, channel, and published-release flag.
Resolve package version metadata for the current runtime location.