-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for cabal-3.4 #2
Comments
More specifically I see this error:
|
That means you're running a severely out of date version of powershell. Should only happen on systems that have not been running windows updates such as the choco bot VM. I will patch the installer but don't intend to support pre-powershell 5 in any official capacity. |
It is curious though as the packaging didn't change between 3.2 and 3.4.. I'll need to look a bit more into why it's hitting this codepath. |
The above error happens on Github Actions, which is a quite widely used CI system. Perhaps it would be useful to create a Github Action workflow to CI test the choco installer script. I can help with that if you're interested. |
I submitted https://chocolatey.org/packages/cabal/3.4.0.1-rc3 which should fix this. There was a slight change of semantics in
Not sure how much that would help as I don't look at the github repository at all aside for bug reports. Packages are released by my internal CI which checks for configuration expected on a typical user machine. As you noted above it also failed chocolatey verification since they too use windows server 2013, but since it's a pre-release package it isn't required to pass. An actual release would have triggered an action for me to look at. |
it's passed verification, so should be available. |
Thanks! |
Is it possible to publish it as Tools like https://github.com/haskell/actions use the version number to construct the path to the binary, which means they can't find the binary because of the version number mismatch: For example, it looks in:
When it actually is in:
|
If it's not possible to republish it as |
Unfortunately no, packages are immutable.
They are bypassing the package's own ability to register itself, which means that github actions has to deal with the versioning scheme being used. The build number, the same as the GHC package is used to iterate on the package not the cabal binary version. Since the package is being bypasses all versions with the same major, minor and revision number to the same thing regardless of the build number. The very fact this is needed is because github actions has a funky setup to begin with... The
When the package is not an Unfortunately cabal always releases using a 4 component version, even though they never change build. In the mean time I have build and release |
Also... By bypassing the package's detection of github actions it also means the package won't configure cabal specifically for it. You have to do stuff like setting a store-dir path yourself... and any other configuration I add in the future. So I don't recommend this approach. If you really must... Instead of setting the |
That said, I think long term we need to resolve what the package should do on github actions. As I mentioned just overriding the detection is just gonna lead to issues down the road.. So we need to find something that works for both uses of the actions package and those using it without. Any suggestions @newhoggy ? |
Can we have support for cabal-3.4 release candidate?
I can see
cabal-3.4.0.0-rc3
listed, but it seems broken:https://gist.github.com/choco-bot/3c4b83125a8bae73d1aecd195aa10e27
The text was updated successfully, but these errors were encountered: