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

Fix detect to log 'Trying group X of Y...' [buildpack/lifecycle#105] #112

Merged
merged 2 commits into from
Apr 8, 2019

Conversation

djoyahoy
Copy link
Member

@djoyahoy djoyahoy commented Apr 8, 2019

Signed-off-by: Danny Joyce djoyce@pivotal.io

Signed-off-by: Danny Joyce <djoyce@pivotal.io>
@djoyahoy djoyahoy requested a review from ekcasey April 8, 2019 18:30
detector.go Outdated
@@ -199,6 +198,7 @@ type BuildpackOrder []BuildpackGroup

func (bo BuildpackOrder) Detect(c *DetectConfig) (plan []byte, group *BuildpackGroup) {
for i := range bo {
c.Out.Printf("Trying group %d of %d...", i + 1, len(bo))
Copy link
Member

@sclevine sclevine Apr 8, 2019

Choose a reason for hiding this comment

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

Now we've lost the buildpack count, which was the original purpose of the line.
If we feel we need more info here, how about:

Trying group 3 out of 5 with 8 buildpacks...
c.Out.Printf("Trying group %d out of %d with %d buildpacks...", i+1, len(bo), len(bo[i].Buildpacks))

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, ok. I thought the intent was to simply log which group we were currently trying.

[#105]

Signed-off-by: Danny Joyce <djoyce@pivotal.io>
@djoyahoy djoyahoy merged commit 1218b42 into master Apr 8, 2019
@djoyahoy djoyahoy deleted the fix-detector-group-logging branch April 8, 2019 20:17
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.

2 participants