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

Use draft.Planner from packit directly #256

Merged

Conversation

joshuatcasey
Copy link
Contributor

@joshuatcasey joshuatcasey requested a review from a team as a code owner May 2, 2022 22:26
@joshuatcasey joshuatcasey self-assigned this May 2, 2022
@joshuatcasey joshuatcasey added the semver:patch A change requiring a patch version bump label May 2, 2022
@robdimsdale robdimsdale enabled auto-merge (rebase) May 9, 2022 13:19
@@ -222,8 +197,9 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {

context("when build plan entries require pip at build/launch", func() {
it.Before(func() {
entryResolver.MergeLayerTypesCall.Returns.Build = true
entryResolver.MergeLayerTypesCall.Returns.Launch = true
buildContext.Plan.Entries[0].Metadata = make(map[string]interface{})
Copy link
Member

Choose a reason for hiding this comment

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

FYI you can inline this to look like this:

buildContext.Plan.Entries[0].Metadata = map[string]interface{}{
    "build": true,
    "launch": true,
}

Not a blcoker for merging - just wanted to share that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. It didn't occur to me but I have seen the pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants