-
Notifications
You must be signed in to change notification settings - Fork 279
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
Use CNB_PLATFORM_API
to adjust what default process to show
#796
Conversation
@jromero I'm not sure whether or not this solves the problem. I based this off this line in the RFC:
The lifecycle release (https://github.com/buildpacks/lifecycle/releases/tag/v0.9.0) and code seems to show that they set it. |
Signed-off-by: David Freilich <dfreilich@vmware.com>
bbe3d05
to
59b23d7
Compare
Codecov Report
@@ Coverage Diff @@
## main #796 +/- ##
==========================================
+ Coverage 77.62% 77.69% +0.07%
==========================================
Files 78 78
Lines 4521 4544 +23
==========================================
+ Hits 3509 3530 +21
- Misses 702 703 +1
- Partials 310 311 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
@dfreilich This makes a lot of sense. I think this is the right solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround. I left a minor nitpick. Feel free to merge as-is and I can address it via #794 since I'll likely be touching this area.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes because from my understanding, the parsing for platform api >= 0.4 is not correct. But perhaps I am confused. Feel free to address my comments and merge if I've got it wrong.
* Add bad env test Signed-off-by: David Freilich <dfreilich@vmware.com>
Signed-off-by: David Freilich <dfreilich@vmware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dfreilich other than the Windows modifications, this looks good to me!
Added support for inspecting Windows images, even on other machines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is soooo close. Just added one comment about making slight changes to the tests.
* Ideally, you should be able to inspect Windows images regardless of which OS machine you are using, so I didn't use filepath.Join() for creating the paths Signed-off-by: David Freilich <dfreilich@vmware.com>
c40023a
to
63dcea9
Compare
CNB_PLATFORM_API
to adjust what default process to show
Signed-off-by: David Freilich dfreilich@vmware.com
Summary
This is an attempt to change the default process type Pack displays for images created with a lifecycle implementing Platform API 0.4.
Output
Before
After
Documentation
Related
Resolves #789