-
-
Notifications
You must be signed in to change notification settings - Fork 389
Non-ascii module names break cabal sdist
#4102
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
Comments
cabal sdist
cabal sdist
Checking that I understand:
So I guess we could remove the character for the next release or just live with the consequences until cabal catches up. |
Not sure. It depends on the tar version used.
Even if cabal catches up, you'd have to ensure everyone updates to the cabal version that has proper unicode support, which is not realistic. Additionnally, hackage rejects packages with non-ascii filenames: https://github.com/haskell/hackage-server/blob/8e3655845b2f152e3cd7dcfae522f6fdafba8950/src/Distribution/Server/Packages/Unpack.hs#L445-L448 Please don't use them. |
That's a good reason for sure. |
Okay, guess we would have to remove the non-ascii in filename. |
Well, nothing is uploaded to hackage yet and it isn't released in ghcup proper either. |
Ok, will do once #4105 is merged and ping you again. |
@hasufell I pushed #4103 and #4105 to the release branch https://github.com/haskell/haskell-language-server/tree/wip/2.7.0.0 and will commence with the release to hackage now. |
Fixed, thanks for catching this! |
cabal-install uses the
tar
package, which just recently got proper unicode support.The following module breaks
cabal sdist
: https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-semantic-tokens-plugin/test/testdata/TModula%F0%90%90%80bA.hsIt will truncate the module name to
TModula
:@fendor @soulomoon
The text was updated successfully, but these errors were encountered: