-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix create-builder with multiple buildpacks of same id
- Remove comptability layer (except for lifecycle symlink) - Introduce COMPILE_PACK_WITH_VERSION env variable for running acceptance tests - Add pack_previous_fixtures_overrides directory to enable overriding fixtures used for previous pack versions Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Natalie Arellano <narellano@pivotal.io>
- Loading branch information
1 parent
0e9b6c9
commit 44eedd5
Showing
13 changed files
with
192 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/0.2/noop-buildpack-2/bin/build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "---> NOOP (later version) Buildpack" |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/0.2/noop-buildpack-2/bin/detect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
## always detect |
9 changes: 9 additions & 0 deletions
9
acceptance/testdata/mock_buildpacks/0.2/noop-buildpack-2/buildpack.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
api = "0.2" | ||
|
||
[buildpack] | ||
id = "noop.buildpack" | ||
version = "noop.buildpack.later-version" | ||
name = "NOOP Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
acceptance/testdata/pack_fixtures/inspect_0.6.0_builder_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Inspecting builder: '{{.builder_name}}' | ||
|
||
REMOTE: | ||
|
||
Created By: | ||
Name: Pack CLI | ||
Version: {{.pack_version}} | ||
|
||
Stack: | ||
ID: pack.test.stack | ||
Mixins: | ||
mixinA | ||
netcat | ||
mixin3 | ||
build:mixinTwo | ||
|
||
Lifecycle: | ||
Version: {{.lifecycle_version}} | ||
Buildpack API: {{.buildpack_api_version}} | ||
Platform API: {{.platform_api_version}} | ||
|
||
Run Images: | ||
some-registry.com/pack-test/run1 (user-configured) | ||
pack-test/run | ||
{{.run_image_mirror}} | ||
|
||
Buildpacks: | ||
ID VERSION | ||
read/env read-env-version | ||
noop.buildpack noop.buildpack.version | ||
simple/layers simple-layers-version | ||
|
||
Detection Order: | ||
Group #1: | ||
simple/layers | ||
read/env@read-env-version (optional) | ||
|
||
LOCAL: | ||
|
||
Created By: | ||
Name: Pack CLI | ||
Version: {{.pack_version}} | ||
|
||
Stack: | ||
ID: pack.test.stack | ||
Mixins: | ||
mixinA | ||
netcat | ||
mixin3 | ||
build:mixinTwo | ||
|
||
Lifecycle: | ||
Version: {{.lifecycle_version}} | ||
Buildpack API: {{.buildpack_api_version}} | ||
Platform API: {{.platform_api_version}} | ||
|
||
Run Images: | ||
some-registry.com/pack-test/run1 (user-configured) | ||
pack-test/run | ||
{{.run_image_mirror}} | ||
|
||
Buildpacks: | ||
ID VERSION | ||
read/env read-env-version | ||
noop.buildpack noop.buildpack.version | ||
simple/layers simple-layers-version | ||
|
||
Detection Order: | ||
Group #1: | ||
simple/layers | ||
read/env@read-env-version (optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
acceptance/testdata/pack_previous_fixtures_overrides/inspect_0.7.0_builder_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
Inspecting builder: '{{.builder_name}}' | ||
|
||
REMOTE: | ||
|
||
Created By: | ||
Name: Pack CLI | ||
Version: {{.pack_version}} | ||
|
||
Stack: | ||
ID: pack.test.stack | ||
Mixins: | ||
mixinA | ||
netcat | ||
mixin3 | ||
build:mixinTwo | ||
|
||
Lifecycle: | ||
Version: {{.lifecycle_version}} | ||
Buildpack API: {{.buildpack_api_version}} | ||
Platform API: {{.platform_api_version}} | ||
|
||
Run Images: | ||
some-registry.com/pack-test/run1 (user-configured) | ||
pack-test/run | ||
{{.run_image_mirror}} | ||
|
||
Buildpacks: | ||
ID VERSION | ||
read/env read-env-version | ||
noop.buildpack noop.buildpack.version | ||
noop.buildpack noop.buildpack.later-version | ||
simple/layers simple-layers-version | ||
|
||
Detection Order: | ||
Group #1: | ||
simple/layers | ||
read/env@read-env-version (optional) | ||
|
||
LOCAL: | ||
|
||
Created By: | ||
Name: Pack CLI | ||
Version: {{.pack_version}} | ||
|
||
Stack: | ||
ID: pack.test.stack | ||
Mixins: | ||
mixinA | ||
netcat | ||
mixin3 | ||
build:mixinTwo | ||
|
||
Lifecycle: | ||
Version: {{.lifecycle_version}} | ||
Buildpack API: {{.buildpack_api_version}} | ||
Platform API: {{.platform_api_version}} | ||
|
||
Run Images: | ||
some-registry.com/pack-test/run1 (user-configured) | ||
pack-test/run | ||
{{.run_image_mirror}} | ||
|
||
Buildpacks: | ||
ID VERSION | ||
read/env read-env-version | ||
noop.buildpack noop.buildpack.version | ||
noop.buildpack noop.buildpack.later-version | ||
simple/layers simple-layers-version | ||
|
||
Detection Order: | ||
Group #1: | ||
simple/layers | ||
read/env@read-env-version (optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.