Skip to content

Pack loses the names of buildpacks#1253

Merged
jromero merged 3 commits intobuildpacks:mainfrom
haliliceylan:pack-loses-names-buildpacks-fix
Aug 17, 2021
Merged

Pack loses the names of buildpacks#1253
jromero merged 3 commits intobuildpacks:mainfrom
haliliceylan:pack-loses-names-buildpacks-fix

Conversation

@haliliceylan
Copy link
Copy Markdown
Contributor

@haliliceylan haliliceylan commented Aug 11, 2021

Signed-off-by: Halil İbrahim ceylan acolops@gmail.com

Summary

When using pack builder create and pack buildpack package, ExtractBuildpacks function was not reading the name variable if the buildpack was down-levels, I fixed this. Additional information is in the issue #1217

Output

Before

Screen Shot 2021-08-11 at 19 50 59

After

Screen Shot 2021-08-11 at 19 46 35

Documentation

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

Related

Resolves #1217

Signed-off-by: Halil İbrahim ceylan <acolops@gmail.com>
@haliliceylan haliliceylan requested a review from a team as a code owner August 11, 2021 16:59
@github-actions github-actions Bot added this to the 0.21.0 milestone Aug 11, 2021
@github-actions github-actions Bot added the type/enhancement Issue that requests a new feature or improvement. label Aug 11, 2021
@jromero jromero added type/bug Issue that reports an unexpected behaviour. and removed type/enhancement Issue that requests a new feature or improvement. labels Aug 11, 2021
@dfreilich
Copy link
Copy Markdown
Member

Thanks for the PR, @haliliceylan ! It looks like there needs to be some changes in the acceptance tests, particularly with the inspect_builder tests. To fix those, you'll probably have to change a lot of the files in https://github.com/buildpacks/pack/tree/main/acceptance/testdata/pack_fixtures, and then put the original ones into the https://github.com/buildpacks/pack/tree/main/acceptance/testdata/pack_previous_fixtures_overrides directory(so that the compatibility tests, which ensures that older visions of pack work, pass). If that's too much, we can do it in a polish PR.

Signed-off-by: Halil İbrahim ceylan <acolops@gmail.com>
@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 Aug 12, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 12, 2021

Codecov Report

Merging #1253 (c7b8a2c) into main (3a7e01b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1253      +/-   ##
==========================================
+ Coverage   81.23%   81.23%   +0.01%     
==========================================
  Files         140      140              
  Lines        8581     8582       +1     
==========================================
+ Hits         6970     6971       +1     
  Misses       1176     1176              
  Partials      435      435              
Flag Coverage Δ
os_linux 79.81% <100.00%> (-0.02%) ⬇️
os_macos 77.17% <100.00%> (-0.03%) ⬇️
os_windows 81.13% <100.00%> (+0.01%) ⬆️
unit 81.23% <100.00%> (+0.01%) ⬆️

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

@haliliceylan
Copy link
Copy Markdown
Contributor Author

I did not get it, some acceptance test are passing, but some of them are not passing like combo-acceptance-test. What i did wrong @dfreilich , @jromero ?

@haliliceylan
Copy link
Copy Markdown
Contributor Author

I copied all orginal ones into pack_previous_fixtures_overrides seems not working let me check compability test code.

@haliliceylan
Copy link
Copy Markdown
Contributor Author

I think compability tests are not pickup pack_previous_fixtures_overrides directory default. I am open to any suggestion.

@jromero jromero mentioned this pull request Aug 17, 2021
@jromero jromero merged commit c7b8a2c into buildpacks:main Aug 17, 2021
@jromero jromero removed type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug Issue that reports an unexpected behaviour.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pack loses the names of buildpacks

3 participants