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

bumped cabal-version field #1498

Merged
merged 2 commits into from
Jan 4, 2022
Merged

Conversation

teto
Copy link
Contributor

@teto teto commented Dec 21, 2021

Fix #1497

@teto teto changed the title build: adding a nix flake bumped cabal-version field Dec 21, 2021
@akhesaCaro
Copy link
Contributor

akhesaCaro commented Dec 22, 2021

Should we change it in the sub projects cabal file, such as servant-swagger.cabal for instance?

@tchoutri
Copy link
Contributor

I think we should

@teto teto force-pushed the bump-cabal-version branch from ccbfb85 to 5c914e9 Compare December 22, 2021 17:04
@teto
Copy link
Contributor Author

teto commented Dec 27, 2021

I've done the requested change. Failures dont seem linked to PR ?

@akhesaCaro
Copy link
Contributor

akhesaCaro commented Dec 27, 2021

It seems that some other Cabal files have been forgotten (non-exhaustive list) :

  • servant-auth-client
  • servant-auth-server
  • servant-auth-swagger
  • servant-client-ghcjs
  • servant-conduit
  • servant-docs
  • servant-foreign
  • servant-http-streams
  • servant-machines

@akhesaCaro
Copy link
Contributor

akhesaCaro commented Dec 27, 2021

  • servant-auth-client
  • servant-auth-server
  • servant-auth-swagger
  • servant-foreign

Are still missing...

servant-swagger/servant-swagger.cabal Outdated Show resolved Hide resolved
@akhesaCaro
Copy link
Contributor

  • servant-auth-client
  • servant-auth-server
  • servant-auth-swagger

also need to be updated...

Matthieu Coudron added 2 commits December 27, 2021 16:05
Cabal supports two types of licenses, native and SPDX, which can be seen here hackage.haskell.org/package/Cabal-3.6.2.0/docs/Distribution-Types-PackageDescription.html#v:licenseRaw

Several packages use BSD-3-Clause as a license, in conjonction with cabal-version: >=1.10 which cabal parses as Right (UnknownLicense "BSD-3").
If I change teh cabal-version to cabal-version: 2.2 , cabal correctly identifdies the license License (ELicense (ELicenseId BSD_3_Clause)).
aka BSD3 -> BSD-3-Clause: next cabal may deprecate the old format
Copy link
Contributor

@tchoutri tchoutri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tchoutri tchoutri merged commit 73c87bc into haskell-servant:master Jan 4, 2022
@teto teto deleted the bump-cabal-version branch January 4, 2022 21:15
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

Successfully merging this pull request may close these issues.

the license in *.cabal is not parsed correctly by cabal for some servant packages
3 participants