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

Cannot upload cabal-version: 3.8 package to Hackage #1351

Open
RyanGlScott opened this issue Dec 11, 2024 · 5 comments
Open

Cannot upload cabal-version: 3.8 package to Hackage #1351

RyanGlScott opened this issue Dec 11, 2024 · 5 comments

Comments

@RyanGlScott
Copy link
Member

When I attempt to upload singletons-base (which needs cabal-version: 3.8) to Hackage, it fails with:

$ cabal upload --publish dist-newstyle/sdist/singletons-base-code-generator-0.1.tar.gz 
<snip>
Uploading dist-newstyle/sdist/singletons-base-code-generator-0.1.tar.gz...
Error uploading dist-newstyle/sdist/singletons-base-code-generator-0.1.tar.gz:
http code 400
Error: Invalid package

'cabal-version' must be at most 3.6

Is there something that needs to change on Hackage's end to support this? I require cabal-version: 3.8 due to the package's use of a cabal code generator.

I am using the latest stable release of cabal (cabal-install version 3.12.1.0) as of the time of writing.

@gbaz
Copy link
Contributor

gbaz commented Dec 11, 2024

Didn't realize we still had that upper-cabal-spec bound. I've disabled it in the code, but will need to schedule a hackage redeploy -- perhaps this weekend.

@RyanGlScott
Copy link
Member Author

Thanks! Let me know if there is anything I can do to help.

@RyanGlScott
Copy link
Member Author

Any update on this, @gbaz?

RyanGlScott added a commit to goldfirere/singletons that referenced this issue Dec 28, 2024
This reverts commit 3fb0b8b.

Sadly, Hackage does not yet accept package uploads that require `cabal-version:
3.8` or later. See haskell/hackage-server#1351. Until
then, we cannot use a `cabal` code generator, which requires `3.8`.
@RyanGlScott
Copy link
Member Author

In the meantime, I am going to revert the use of a code generator, as it is effectively incompatible with Hackage.

@gbaz
Copy link
Contributor

gbaz commented Dec 28, 2024

Sorry about the delay. Will try to get to this very soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants