-
Notifications
You must be signed in to change notification settings - Fork 116
Dockerfiles phase 1 (detect changes) #860
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
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
5a4832b
Acceptance tests pass with creator commented out
ed1b3a7
Fix creator
fc4a7e3
Add unit tests for analyze inputs
2b505c6
Add scaffold for analyzer builder unit tests
6fef994
Add many unit tests, still have some TODOs
043974b
Address most TODOs
02a5c74
Acceptance tests pass
785d81a
A few more TODOs
e58d007
Bring back go 1.16
125f01f
Add unit test
4b4e816
Fix acceptance tests
8294ea5
Fix units
fd6beb3
Remove nolint
8335a56
Remove unneeded things
9ee1dfd
Use operations pattern
d21352f
Refactor tests to take advantage of operations pattern
d81cb6c
Add missing tests
d815707
Fix lint
46a24ae
Analyzer factory assigns "nop" services by default
fe83502
Try to fix registry handler test
f72848d
Move new package from cmd/lifecycle/platform to platform/inputs
a457244
Merge branch 'main' into cmd-package
c828d03
Updates per PR review
e0e8d8a
Test the platform instead of the exiter
0af8ab2
Combine cmd/lifecycle/platform and platform
fcac2e3
Clean up constructors
59097ca
Remove ForAnalyzer struct
76811ce
Combine cmd/launcher/platform and platform
2d4a9bc
Remove comment
e06cb9c
Remove spec alias
c982fb1
Move cache metadata back to platform
4aa3115
Add comment and remove unused vars
2078007
Merge branch 'main' into cmd-package
f358c2d
Move buildpack store and make it hold extensions also
462bf4e
WIP: detector units pass
476d407
Rename GroupBuildpack to GroupElement
ecec7a8
Move Buildpack interface to buildpack package and rename BuildModule
42a9351
WIP
c693e7d
WIP
61abad0
WIP
d6a0204
WIP
81408eb
WIP
788999e
WIP
e93fc73
WIP
35b6f7b
Merge branch 'main' into dockerfiles-phase-1-detect
4189ea3
Verify buildpack apis when reading order
8155aae
Update comment
f71def2
Remove comment
ff567c8
Decouple config handler and api verifier
d070f0a
Move var to file where it is used
38287b8
Add tests
0b6cf13
Add TODO
0a54192
Merge branch 'main' into dockerfiles-phase-1-detect
e92a8b7
Updates per PR review
c518697
Don't fail detect if /bin/detect and plan.toml are both missing
46375d0
Fix cherry pick
3eb9961
APIVerifier takes a kind
3a0218d
DirStore takes a kind
7130656
detect_test.go uses kind
0a358b4
Ensure that optional information is preserved
bc0a646
Remove ToGroupElement() weirdness and fix comparison
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
.../detector/container/cnb/buildpacks/buildpack_for_ext/buildpack_for_ext_version/bin/detect
This file contains hidden or 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,11 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| plan_path=$2 | ||
|
|
||
| cat >> "${plan_path}" <<EOL | ||
| [[requires]] | ||
| name = "some_requirement" | ||
| [requires.metadata] | ||
| version = "some_version" # Optional | ||
| some_metadata_key = "some_metadata_val" # Optional | ||
| EOL |
5 changes: 5 additions & 0 deletions
5
...ector/container/cnb/buildpacks/buildpack_for_ext/buildpack_for_ext_version/buildpack.toml
This file contains hidden or 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,5 @@ | ||
| api = "0.3" | ||
| [buildpack] | ||
| id = "buildpack_for_ext" | ||
| version = "buildpack_for_ext_version" | ||
| name = "Buildpack for Extensions" |
8 changes: 8 additions & 0 deletions
8
...ta/detector/container/cnb/extensions/simple_extension/simple_extension_version/bin/detect
This file contains hidden or 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,8 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| plan_path=$2 | ||
|
|
||
| cat >> "${plan_path}" <<EOL | ||
| [[provides]] | ||
| name = "some_requirement" | ||
| EOL |
5 changes: 5 additions & 0 deletions
5
...etector/container/cnb/extensions/simple_extension/simple_extension_version/extension.toml
This file contains hidden or 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,5 @@ | ||
| api = "0.9" | ||
| [extension] | ||
| id = "simple_extension" | ||
| version = "simple_extension_version" | ||
| name = "Simple Extension" |
9 changes: 9 additions & 0 deletions
9
acceptance/testdata/detector/container/cnb/orders/order_with_ext.toml
This file contains hidden or 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 @@ | ||
| [[order]] | ||
| [[order.group]] | ||
| id = "buildpack_for_ext" | ||
| version = "buildpack_for_ext_version" | ||
|
|
||
| [[order-ext]] | ||
| [[order-ext.group]] | ||
| id = "simple_extension" | ||
| version = "simple_extension_version" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.