-
Notifications
You must be signed in to change notification settings - Fork 383
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
(virtualbox) Add missing dependency for 7.0 stream #2041
(virtualbox) Add missing dependency for 7.0 stream #2041
Conversation
… for planned reuse in VirtualBox package, fix PSScriptAnalyzer warnings, remove unnecessary namespace declarations
…al C++ 2015-2019 Redistributable v14.20.27508.1
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
Verification failed because This appears to be a regression that was introduced with 7c18a07, which causes both I can push a new commit implementing this if need be, although it seems we wanted to go in a different direction as previously documented with #1771. Not sure if this is within the scope of this PR to resolve. |
@brogers5 |
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.
As per 3.2 pull requests should in general only affect a single package (there are exceptions, but this PR is not one of them), as this package is for VirtualBox according to the title please update the PR to only make the necessary changes to the VirtualBox while dropping off the changes to 1password.
…latey-packages-community into virtualbox-add-dependency
✅ Package verification completed without issues. PR is now pending human review |
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.
We probably need to rework the scripts at a later time, but for now it is fine.
LGTM, thank you for making these changes.
@brogers5 your changes have been merged, thanks for your contribution 👍 Your changes will be part of any new package versions that will be pushed to the Chocolatey Community Repository. |
Description
This changeset adds a 7.0 stream-specific dependency on
vcredist140
v14.20.27508.1 or later to thevirtualbox
package.Motivation and Context
Fixes #2005.
The main challenge behind implementing this was the fact that
virtualbox
also supports a separate stream for the 6.1 maintenance branch. Unlike the 7.0 branch, this dependency does not apply for the 6.1 branch. Ideally, we'd like to avoid having 6.1 take on an unnecessary dependency.In looking around the repository, I found some update helper functions for dependency management in the
1password
package, which I felt would be very helpful here. I opted to extract these to generic AU extension functions to enable use of a common implementation for bothvirtualbox
and any current/future packages that may encounter a similar problem down the road.How Has this Been Tested?
virtualbox
Update TestTemporarily reverted
virtualbox.json
to the pre-6.1.40 state.Executed the modified
update.ps1
withNoCheckChocoVersion
.Inspected the resulting
virtualbox
packages (6.1.40 and 7.0.2) with NuGet Package Explorer.Confirm that both packages maintain a dependency on
chocolatey-core.extension
v1.3.3 or later.Confirmed the 6.1.40 package does NOT have a dependency on
vcredist140
.Confirmed the 7.0.2 package DOES have a dependency on
vcredist140
v14.20.27508.1 or later.virtualBox
Install TestCopied the 7.0.2 test package to a local instance of a clean Chocolatey Testing Environment.
Installed the test package using
choco install virtualbox --source="'.;https://community.chocolatey.org/api/v2/'"
.Confirmed the installation succeeds.
1password4
Update Regression TestSet
$Force = $true
Set
$IncludeStream = 'OPW4'
Import-Module Wormies-AU-Helpers
to avoid unrecognized function errors (I assumeupdate.ps1
currently expectstest_all.ps1
orupdate_all.ps1
to set this up).Execute the modified
update.ps1
.Inspect the resulting
1password4
package with NuGet Package Explorer.Confirm that
1password4
maintains a dependency onchocolatey-core.extension
v1.3.3 or later.Confirm that
1password4
does NOT have a dependency ondotnet4.7.2
.1password
Update Regression TestSet
$IncludeStream = 'OPW'
Execute the modified
update.ps1
.Inspect the resulting
1password
package with NuGet Package Explorer.Confirm that
1password
maintains a dependency onchocolatey-core.extension
v1.3.3 or later.Confirm that
1password
also maintains a dependency ondotnet4.7.2
v4.7.2.20180712 or later.Screenshot (if appropriate, usually isn't needed):
N/A
Types of changes
Checklist: