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

Fix create-builder with multiple buildpacks of same id #459

Merged
merged 3 commits into from
Jan 18, 2020

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented Jan 16, 2020

Resolves #430

  • Remove comptability layer (except for lifecycle symlink)
  • Remove comptability metadata from builder creation
  • 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: Natalie Arellano narellano@pivotal.io
Signed-off-by: Andrew Meyer ameyer@pivotal.io

@natalieparellano natalieparellano requested a review from a team as a code owner January 16, 2020 20:11
- Remove comptability layer (except for lifecycle symlink)
- Remove comptability metadata from builder creation
- 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>
@natalieparellano natalieparellano force-pushed the fix/430-dedup-buildpacks branch from 44eedd5 to cb76022 Compare January 16, 2020 20:17
Makefile Show resolved Hide resolved
defer os.RemoveAll(tmpPreviousPackFixturesPath)

h.RecursiveCopy(t, previousPackFixturesPath, tmpPreviousPackFixturesPath)
h.RecursiveCopy(t, filepath.Join("testdata", "pack_previous_fixtures_overrides"), tmpPreviousPackFixturesPath)
Copy link
Member

Choose a reason for hiding this comment

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

I think I understand why this is needed. Maybe it's worth creating a README.md in that directory that entails exactly why you would put stuff in that directory.

Also, would it not suffer from the same problems we originally had with "pack_previous" in which you had to update the repo after a release because "current" was (de)moted to "previous"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would vote on punting on the docs so we can get this out. Thoughts @jromero?

It won't suffer from the same problems if it just has the version-related files like it has now. But true, it could suffer in general. Hopefully these are the only type of files we'd need. We'll keep an eye on this.

- Remove compat unit tests that are no longer needed
- Only add the compat layer path to the layers for an image if the
  compat.tar exists
- `make acceptance` should only require previous pack fixtures to be a
  valid directory if the env variable is set

Signed-off-by: Natalie Arellano <narellano@pivotal.io>
Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
- Place lifecycle symlink in lifecycle layer since it is all that is left of the compat logic

Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
@jromero jromero merged commit 589d997 into master Jan 18, 2020
@zmackie zmackie added this to the pack-0.7.0 milestone Jan 21, 2020
@dfreilich dfreilich deleted the fix/430-dedup-buildpacks branch November 6, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pack create-builder should de-dup buildpacks list
4 participants