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

Adds support of buildpackages in buildpack store and updates freezer #302

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

ForestEckhardt
Copy link
Contributor

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

robdimsdale
robdimsdale previously approved these changes Jun 4, 2024
Copy link
Member

@robdimsdale robdimsdale left a comment

Choose a reason for hiding this comment

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

Generally looks good. A couple of non-blocking questions/comments.

packagers/jam.go Outdated
@@ -47,15 +68,32 @@ func (j Jam) Execute(buildpackDir, output, version string, offline bool) error {
args := []string{
"pack",
command, filepath.Join(buildpackDir, buildpackOrExtensionToml),
"--output", output,
"--output", filepath.Join(jamOutput, fmt.Sprintf("%s.tgz", version)),
Copy link
Member

Choose a reason for hiding this comment

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

can we encapsulate fmt.Sprintf("%s.tgz", version) into a variable - both for re-use but also to give it a useful name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure I have no objections. Push something up soon.

pack = &fakes.Executable{}

tempOutput = func(string, string) (string, error) {
return "some-jam-output", nil
Copy link
Member

Choose a reason for hiding this comment

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

Does this work if the tests are run in parallel?

I was expecting to see t.TempDir as a testing substitute for the default os.MkdirTemp

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think I have ever seen issues with os.MkdirTemp and thread safety. It was just the function that I am most familiar with.

@ForestEckhardt ForestEckhardt added the semver:patch A change requiring a patch version bump label Jun 5, 2024
@ForestEckhardt ForestEckhardt merged commit e9fee75 into main Jun 5, 2024
7 of 8 checks passed
@ForestEckhardt ForestEckhardt deleted the create-buildpackage branch June 5, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants