Skip to content

How to enforce runtime version consistency for project build requirements? #16066

@johnwalk-spotify

Description

@johnwalk-spotify

Question

We have a project with a number of build dependencies (specifically protobuf compilation) that must be kept consistent with the runtime versions of those dependencies. This circumstance is pretty well-documented already in the project config page, but the examples there refer only to building the project's child dependencies, not the project itself.

We can get the build to work by setting no-build-isolation-package referring to the top-level project, but this feels overly aggressive. When instead trying to use the annotation introduced in #15036, the build errors due to circular reasoning trying to resolve the local project, as it does not read as having static metadata available.

For building this project, then:

  1. Is there a way for extra-build-dependencies annotations to support the parent package rather than just its child dependencies?
  2. Should we instead just consider this project as not supporting build isolation and proceed with that?

Platform

No response

Version

0.8.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions