* Add support for Platform API Version 0.2
* Extend the incompatible-platform-version check to include a minimum-supported version.
* When encountering lifecycle with platform API version 0.2 and above:
* Stop requiring cacher when creating a new builder.
* Remove cacher build phase.
* Reorder analyzer and restorer build phases.
* Change the -path cache flag name to -cache-dir.
Signed-off-by: Lukas Berger <bergerl@google.com>
- During create-builder, check that buildpack mixins are satisfied
- During build, check that stack image mixins are in agreement, and that buildpack mixins are satisfied
- Slight refactors
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
* Default lifecycle during `create-builder` if no version or URI is specified
Resolves#254
Signed-off-by: Javier Romero <jromero@pivotal.io>
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
* Remove support for lifecycle < 0.3.0
* Abstract buildpack and lifecycle contents into `blobs`
* Remove use of image cache in favor of volume cache
* Add option to change cache dir in `pack.Client`
Signed-off-by: Javier Romero <jromero@pivotal.io>
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
* Allow create-builder on Windows
- Also allow tgz buildpacks on build command
- Still disallowing directory buildpacks on Windows
Resolves#181
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
Signed-off-by: Javier Romero <jromero@pivotal.io>
* Add unit tests to buildpack fetcher
* Create the BuildpackFetcher interface
* Inject a buildpack fetcher into create_builder
* Remove tests from create_builder that were specific to
buildpack fetching
Signed-off-by: Danny Joyce <djoyce@pivotal.io>
This commit introduces fixtures for permutations of:
* 'file://' vs 'http(s)://' no scheme
* Relative vs absolute paths
* Directory vs archive
The logic in create_builder.go is modified to guard against two corner cases:
* When given 'file://' URIs with two slashes, the golang URI library interprets the first path
segment as being a hostname. In this case the path is prepended with that value.
* Relative paths when there is no scheme lead to doubling-up of the builder dir value in the final
output. In this case we skip the prepending of builder dir to the path.
[buildpack/pack#51]