buildpacks / roadmap

Issue tracker
https://buildpacks.io
Apache License 2.0
0 stars 0 forks source link

As a pack CLI user, I must select a builder with: pack set-default-builder #36

Closed sclevine closed 5 years ago

sclevine commented 5 years ago

Acceptance Criteria When I install the pack CLI on a workstation that has not had v0.1.0 installed at any point And pack set-default-builder has not been run with pack v0.1.0 And I run pack build or pack run Then I see:

Please select a default builder with:

pack set-default-builder [builder image]

Suggested builders:
  Cloud Foundry:  cloudfoundry/cnb
  Heroku:         heroku/buildpacks

Sample builders:
  Samples:        packs/samples

Notes:

ameyer-pivotal commented 5 years ago

To solution a tad, I think one way we could address this is to leave the initial default builder "", rather than populating it on first config load like we currently do. Then we can use "" to key off of for determining whether they need to select a default builder.

sclevine commented 5 years ago

TODO: add more detail for each image (e.g., bionic vs. cflinuxfs3, buildpacks included), also recommend pack inspect-builder

ekcasey commented 5 years ago

This feature is essentially done in master of pack. However, I temporarily commented out the actual references to the suggested builders b/c neither currently work with master of pack

We should probably hold on acceptance until the builders work...

mgibson1121 commented 5 years ago

Per speaking with @djoyahoy, holding off testing this until the CF/heroku suggestions are truly randomized.

ekcasey commented 5 years ago

After discussion with @sclevine @nebhale @jkutner @hone It seems that we would like to take "Samples Builders", section out of the suggestions.

This raises an interesting question... our acceptance tests run against the samples builder, once the samples builder is no longer a default or even a suggested builder this doesn't seem as appropriate any more. What should we do instead?

Is testing against a builder created with pack create-builder sufficient? Should we also test that our suggested builders work? I think that would be probably be good for our users.

mgibson1121 commented 5 years ago

@ekcasey Is this story ready for acceptance? I recall during standup @sclevine mentioning a slightly more complex UX around randomly generating the order of the builders, but also grouping the CF builders together.

mgibson1121 commented 5 years ago

@ekcasey @ameyer-pivotal @djoyahoy Any pointers for how to mimic this scenario on my machine? When I install the pack CLI on a workstation that has not had v0.1.0 installed at any point

djoyahoy commented 5 years ago

@mgibson1121 you can delete the ~/.pack directory (rm -r ~/.pack) if it exists.

mgibson1121 commented 5 years ago

This passes acceptance