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

Let PackageDefinition build the package itself #1062

Merged
merged 2 commits into from
Dec 30, 2021
Merged

Let PackageDefinition build the package itself #1062

merged 2 commits into from
Dec 30, 2021

Conversation

CharliePoole
Copy link
Member

@CharliePoole CharliePoole commented Dec 30, 2021

This is a refactoring change in support of #1057.

My last bit of script refactoring was much too big, so I'm just doing little pieces now. The advantage is they are easier to review. The disadvantage is it may not be obvious why I'm making a particular change.

In this case, I'm eliminating a bunch of procedural code and allowing the package definition class to do the building through an abstract method, which is overridden for each of the four package types: NuGet, Chocolatey, Msi and Zip. This works together with the representation of all our packages in package-definition.cake and will eventually lead to the packages publishing themselves as well.

@CharliePoole CharliePoole requested a review from a team December 30, 2021 04:35
Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

cake/package-definitions.cake Outdated Show resolved Hide resolved
@CharliePoole CharliePoole merged commit 435cfd9 into master Dec 30, 2021
@CharliePoole CharliePoole added this to the 3.13.1 milestone Dec 30, 2021
@CharliePoole CharliePoole deleted the bld-pkg branch December 30, 2021 22:52
@CharliePoole
Copy link
Member Author

This issue has been resolved in version 3.13.1

The release is available on:
GitHub.
NuGet packages are also available NuGet.org and
Chocolatey Packages may be found at Chocolatey.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants