-
Notifications
You must be signed in to change notification settings - Fork 931
(#3804, #1901) Add source locations to package information #3801
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
Conversation
1239d46
to
644d0ba
Compare
src/chocolatey/infrastructure.app/domain/ChocolateyPackageInformation.cs
Outdated
Show resolved
Hide resolved
src/chocolatey/infrastructure.app/services/ChocolateyPackageInformationService.cs
Outdated
Show resolved
Hide resolved
src/chocolatey/infrastructure.app/domain/ChocolateyPackageInformation.cs
Outdated
Show resolved
Hide resolved
This commit adds the source location for a package to the .chocolatey directory, and adds the printing of the location to the `choco list` verbose output (and also `choco info --local-only`).
This commit reverts c74a19c where we had reverted the initial work to display the deployment location. As we are releasing a new version of CLE that can take this newer version as a breaking change, we can add this functionality in there too.
From a functionality standpoint I'm happy to approve this. I'll leave the final approval on naming and such to Gary and Paul before we call it all good, though. :3 |
I noticed some missed renames after @vexx32 left their review. I've added one last commit, and run the Chocolatey Agent Test Kitchen suite here: https://sra-soteria-web.ch0.co/buildConfiguration/TestKitchen_ChocolateyAgent/38694. I will review the results in the morning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me, just a couple minor nitpicks, and an overall suggestion on how to finish this off.
This adds pester tests to ensure the deployment location and the source repository are correctly output when running `choco info --local-only`
This commit renames the SourceInstalledFrom variable to the decided variable name. This also removes the uses of the deprecated PackageResult constructor.
This commit adds documentation to the PackageResult class, and slightly adjusts the formatting of the constructors to make them clearer.
This commit adds the license packages in the snapshot creation. Some of the licensed tests rely on the license packages to ensure it has access to the expected license files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Great work, Cory! 💜
Description Of Changes
Add the source repository and deployment location to the stored Chocolatey package information, displaying it as part of
choco info --local-only
andchoco list --verbose
.Motivation and Context
See #3804 and #1901
Testing
choco install <packageName>
$env:ChocolateyInstall/.chocolatey/<packageName>.<packageVersion>/.sourceInstalledFrom
that it exists, and includes the repository that was used for installation.choco install <packageName> --source .
$env:ChocolateyInstall/.cho 10000 colatey/<packageName>.<packageVersion>/.sourceInstalledFrom
that it exists, and includes the local path that was used for installation.choco info <packageName> --local-only
and ensure that both the deployment location and the source installed from location are listed.choco list --verbose
and ensure that both the deployment location and the source installed from location are listed.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
choco info
output #1901