Skip to content
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

Add support for Platform 0.10 #1547

Merged
merged 17 commits into from
Nov 20, 2022
Merged

Add support for Platform 0.10 #1547

merged 17 commits into from
Nov 20, 2022

Conversation

natalieparellano
Copy link
Member

Summary

This PR builds off of #1478 so will probably be easier to review when that is merged

Supersedes #1527 (but keep that one open until we release pack with these changes as the docs PR points to #1527)

Still a draft because:

  • We need to update go.mod and the default lifecycle to 0.15.1 when released
  • We need to add unit tests for pack inspect for platform API >= 0.10

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Resolves #1469

Fix (restore): when gid is provided, it shouldn't override other flags
Fix (analyze): when cache image is used, flags should not also contain -cache-dir
Fix (restore): when cache image is used, flags should not also contain -cache-dir
- Variable rename (ops for operations)
Fix (restore): provide registry credentials when using a cache image

Signed-off-by: Natalie Arellano <narellano@vmware.com>
- 0.10 is a supported platform and the default lifecycle is 0.15.0
- Run the extender when there are extensions

Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano changed the base branch from main to extensions-phase-1 November 8, 2022 22:03
@github-actions github-actions bot added this to the 0.28.0 milestone Nov 8, 2022
@github-actions github-actions bot added type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement. labels Nov 8, 2022
CODEOWNERS Outdated Show resolved Hide resolved
Signed-off-by: Natalie Arellano <narellano@vmware.com>
- The sha changed with the removal of *.bat (as Windows is not supported)

Signed-off-by: Natalie Arellano <narellano@vmware.com>
… needed

- On platform 0.10, we can't determine the buildpack API so we don't know how to display the process args;
  this should be fixed in platform 0.11

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano
Copy link
Member Author

This is ready for review but needs to be re-pointed when extensions-phase-1 is merged as it is based off of that PR.

@natalieparellano natalieparellano marked this pull request as ready for review November 10, 2022 19:36
@natalieparellano natalieparellano requested a review from a team as a code owner November 10, 2022 19:36
Base automatically changed from extensions-phase-1 to main November 14, 2022 14:30
@jkutner jkutner requested a review from a team as a code owner November 14, 2022 14:30
…on is not running

Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano force-pushed the platform-0.10 branch 2 times, most recently from 8734390 to 203bbd5 Compare November 14, 2022 20:32
… perms on Linux

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@codecov
Copy link

codecov bot commented Nov 14, 2022

Codecov Report

Merging #1547 (6c3de7f) into main (007306f) will increase coverage by 0.15%.
The diff coverage is 85.72%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1547      +/-   ##
==========================================
+ Coverage   80.99%   81.14%   +0.15%     
==========================================
  Files         156      156              
  Lines       10284    10362      +78     
==========================================
+ Hits         8329     8407      +78     
  Misses       1458     1458              
  Partials      497      497              
Flag Coverage Δ
os_linux 79.93% <82.42%> (+0.16%) ⬆️
os_macos 77.42% <82.42%> (+0.12%) ⬆️
os_windows 81.02% <85.72%> (+0.15%) ⬆️
unit 81.14% <85.72%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
We can't remove something that wasn't built

Signed-off-by: Natalie Arellano <narellano@vmware.com>
Copy link
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ❤️

Copy link
Member

@dfreilich dfreilich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! Overall, I think it could've used a bit more clarification in the code about why there were so many specific kaniko changes, but I assume that's covered in RFC.

@@ -65,8 +65,8 @@ install:
cp ./out/$(PACK_BIN) ${DESTDIR}${BINDIR}/

mod-tidy:
$(GOCMD) mod tidy
cd tools && $(GOCMD) mod tidy
$(GOCMD) mod tidy -compat=1.17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'm not sure whether we need to ensure we have compat with go1.17. I would be fine in a future release migrating to >= go1.19, unless there are specific reasons for us to remain below latest

@@ -1,4 +1,4 @@
api = "0.2"
api = "0.9"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, crazy we haven't bumped that version since!

gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

go 1.17

// Ensure compatibility with lifecycle/kaniko; match dependencies configured in:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the note! Very helpful to have that added for the context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pack should support platform 0.10
3 participants