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

(doc) Update build instructions #3467

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

gep13
Copy link
Member

@gep13 gep13 commented Jun 17, 2024

Description Of Changes

Add documentation on how to complete build of Chocolatey CLI.

Motivation and Context

We got some feedback that is wasn't clear on how to build Chocolatey CLI

Testing

New VM in Azure Portal was created, and steps executed as documented.

Operating Systems Testing

N/A

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue

N/A

@gep13 gep13 added this to the 2.4.0 milestone Jun 17, 2024
@gep13 gep13 requested a review from corbob June 17, 2024 10:24
@gep13
Copy link
Member Author

gep13 commented Jun 17, 2024

@flcdrg can I ask that you have a look at this PR, and provide any additional changes/suggestions? Thanks!

setup.ps1 Show resolved Hide resolved
corbob
corbob previously approved these changes Jun 19, 2024
Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

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

These changes look good to me.

I'll hold off on merging in case there's any desire to tackle this comment in this PR:

I notice that we don't have a link to this section from the README.md file, which we likely should have.

We got some feedback that is wasn't easy to build Chocolatey CLI, as
there were errors during process. This commit attempts to address this
gap, and provide a complete list of all requirements/assumptions.
While this is not strictly needed, as the MSI for Chocolatey CLI is not
always built, the inclusion of the *.wixproj in the Visual Studio *.sln
file means that some parts of the build (like the restore task), does
attempt to do stuff with WiX.  While this doesn't actually stop the
build from happening, as error is shown, and can cause confusion. Always
installing the WiX tool prevents these errors from showing.
Always add a new line after a heading in markdown. This makes the
document easier to read and parse.
It was pointed out in community discussion that the main README file
doesn't mention anything to do with running tests for the Chocolatey
CLI codebase.  This commit adds a new Testing section to the README.md
file, that links off to the pertinent information in the TESTING.md
file.

Used the Markdown All in One VSCode extension to update the table of
contents.  Initially this was adding an entry in the TOC section for the
first heading, which was not there before, so added an entry in
workspace settings.json file to exclude this.  Updating this table of
contents actually picked up on some previously entries which hadn't
been added.
@gep13
Copy link
Member Author

gep13 commented Oct 25, 2024

@corbob as per discussions, I have updated this PR, and added a new section to link off to the TESTING.md file.

Can you have another review of this, and if you are happy, this can be merged in.

Thanks

Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

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

LGTM

@corbob corbob merged commit c8326fb into chocolatey:develop Oct 25, 2024
5 checks passed
@corbob
Copy link
Member

corbob commented Oct 25, 2024

Thanks for getting this fixed up @gep13 👍

@corbob corbob added the 4 - Done label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants