-
Notifications
You must be signed in to change notification settings - Fork 906
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
Problems updating packages with existing dependencies pushed by previous versions of Chocolatey (probably due to SemVer v2 enforcement since choco v2) #3499
Comments
Chocolatey CLI 1.x is not supported for open-source users. The latest version is 2.3.0 so that should always be used going forward. Can you take a dependency on a different version of |
The short answer would be yes and no! The library OpenCV 4.5.4 do not build out of the box with more recent versions of MinGW. Therefore, I consider those versions of MinGW as not recommended for people that would need specifically OpenCV 4.5.4. However, latest version of OpenCV do build correctly with latest MinGW available on Chocolatey and indeed, I submitted a package for that scenario: https://community.chocolatey.org/packages/libopencv-dev/4.10.0.20240808. In reality, I am somehow trying to find a way to do some parts of what I suggest in #3497. Fortunately, in the end it looks like Chocolatey is close to be compatible with what I describe! |
It sounds to me like the best solution would be for a I can't see anything else for us to do here? |
Indeed, this is probably the cleanest way to solve that issue, since it is probably quite rare. I will signal the problem to the maintainers of the mingw package, and whatever their answer, in the meantime I can still pack the package with Chocolatey v1.4.0 as I mentioned. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Dear contributor, As this issue seems to have been inactive for quite some time now, it has been automatically closed. |
Checklist
What You Are Seeing?
https://community.chocolatey.org/packages/libopencv-dev/4.5.4.20240807#versionhistory is saying "Waiting on dependencies" forever. The changes in the package are only links and corresponding checksums in
chocolateyInstall.ps1
.This seems linked to a silent change made by
choco pack
that removes leading0
in itsmingw
dependency version numbers.A possible workaround seems to pack with an older version of choco, e.g. v1.4.0.
What is Expected?
Ideally, providing minor fixes to existing packages should be as easy as possible.
How Did You Get This To Happen?
EDIT 2024-08-14: some of the mentioned links may have been updated in the meantime.
I was trying to do:
which returned success, I received a confirmation e-mail but the status on https://community.chocolatey.org/packages/libopencv-dev/4.5.4.20240807#versionhistory was saying "Waiting on dependencies" and did not seem to change while other packages I submitted near the same time seemed to follow the usual procedure.
So, I looked below on the page and saw "mingw (= 11.2.0.7112021)" in the dependencies and clicked on the underlying link (https://community.chocolatey.org/packages/mingw/11.2.0.7112021) which said 404 error. Indeed, the version I needed was 11.2.0.07112021 (with leading 0), as still correctly listed on https://community.chocolatey.org/packages/libopencv-dev/4.5.4.20240203#dependencies , which is the previous version of the package for which I want to provide a fix.
I checked my
libopencv-dev.nuspec
and it was correctly showing 11.2.0.07112021 but afterchoco pack
and extraction of the resulting .nupkg, I see thatchoco pack
changes 11.2.0.07112021 to 11.2.0.7112021 in the .nuspec, hence the problems.Then, I realized that it was probably since Chocolatey v2 that versions are corrected and the last time I used
choco pack
for a package with dependency "mingw (= 11.2.0.07112021)" was probably with Chocolatey v1.4.0.So, I prepared a virtual machine, installed choco, and then downgraded it:
Then, I packed https://community.chocolatey.org/packages/libopencv-dev/4.10.0 (which also had the same problems) with that version of choco and pushed from my main computer which has choco v2.2.2 and I do not see problems up to now.
Is there a better solution for this type of problem?
System Details
Installed Packages
Output Log
Additional Context
I took note of these issues when searching for a solution:
The text was updated successfully, but these errors were encountered: