Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contractual build plan #52

Merged
merged 6 commits into from
Jul 26, 2019
Merged

Contractual build plan #52

merged 6 commits into from
Jul 26, 2019

Conversation

sclevine
Copy link
Member

sclevine added 3 commits July 10, 2019 21:43
Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
buildpack.md Outdated
For a given buildpack group,
- If a required buildpack provides a dependency that is not required by the same buildpack or a subsequent buildpack, the group MUST fail to detect.
- If a required buildpack requires a dependency that is not provided by the same buildpack or a previous buildpack, the group MUST fail to detect.
- If an optional buildpack provides a dependency that is not required by the same buildpack or a subsequent buildpack, it MUST be excluded from the build phase and its requires and provides MUST be excluded from the Build Plan.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we clarify that "it" (as in "it MUST be excluded") is the optional buildpack, and not the thing that was provided?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done :)

@sclevine
Copy link
Member Author

@hone @nebhale awaiting approval 😄

Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
@sclevine
Copy link
Member Author

@hone updated to match dist spec requirements. Awaiting approval 😄

name = "<dependency name>"
version = "<dependency version>"

[requires.metadata]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to the Contractual Build Plan RFC, requires doesn't have a metadata section.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch (assuming you mean provides). Fixed :)

Copy link
Member

@hone hone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, besides the extra metadata in the buildplan TOML.

Signed-off-by: Stephen Levine <stephen.levine@gmail.com>
@sclevine sclevine merged commit c3b8b34 into master Jul 26, 2019
@nebhale nebhale deleted the contract-build-plan branch August 30, 2019 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants