[Haskell-cafe] Hackage package upload error: Invalid package

Michael Burge michaelburge at pobox.com
Sun May 1 12:50:49 UTC 2016


For the TLS error, try generating the hackage-compatible file manually and
uploading through their web interface. If that succeeds, then you can then
ask where along the path from stack to hackage it differs from the manual
upload. If that fails, then I would test for packet corruption on your end
next.

On Sun, May 1, 2016 at 5:37 AM, Michael Burge <michaelburge at pobox.com>
wrote:

> It gives you a warning at the end about the use of -Werror and -auto-all.
> If you remove those options, does it go through?
>
> On Sun, May 1, 2016 at 5:31 AM, Kostiantyn Rybnikov <k-bx at k-bx.com> wrote:
>
>> Hi!
>>
>> Wanted to upload the 0.8.1 version of hedis, did what I usually did, but
>> getting an error. Running "stack -v upload ." seems to show some
>> tls-related details.
>>
>> ```
>> ➜  hedis git:(master) stack -v upload .
>> Version 1.0.4.3 x86_64
>> 2016-05-01 15:29:31.034044: [debug] Checking for project config at:
>> /Users/kb/workspace/hedis/stack.yaml
>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:761:9)
>> 2016-05-01 15:29:31.037100: [debug] Loading project config file
>> stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config
>> src/Stack/Config.hs:779:13)
>> 2016-05-01 15:29:31.110561: [debug] Checking for project config at:
>> /Users/kb/workspace/hedis/stack.yaml
>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:761:9)
>> 2016-05-01 15:29:31.110690: [debug] Loading project config file
>> stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config
>> src/Stack/Config.hs:779:13)
>> 2016-05-01 15:29:31.111459: [debug] Trying to decode
>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:29:31.124939: [debug] Success decoding
>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:29:31.132890: [debug] Trying to decode
>> /Users/kb/.stack/indices/Hackage/00-index.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:29:31.421690: [debug] Success decoding
>> /Users/kb/.stack/indices/Hackage/00-index.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:29:31.434522: [debug] Run process: ghc --info
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:29:31.498337: [debug] Run process: ghc --numeric-version
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:29:31.543696: [debug] Run process: ghc-pkg
>> --no-user-package-db field --simple-output Cabal version
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:29:31.576011: [debug] Run process: ghc-pkg
>> --no-user-package-db list --global
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:29:31.625682: [info] Getting file list for
>> /Users/kb/workspace/hedis/ @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>> src/Stack/SDist.hs:96:5)
>> 2016-05-01 15:29:31.628599: [debug] Checking resolver: lts-5.3
>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Build.Source
>> src/Stack/Build/Source.hs:164:17)
>> 2016-05-01 15:29:31.628777: [debug] Trying to decode
>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:29:31.636259: [debug] Success decoding
>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:29:31.650120: [debug] Run process: ghc-pkg
>> --no-user-package-db list --global
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:29:31.679601: [debug] Run process:
>> /Users/kb/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
>> --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 sdist --list-sources
>> /private/var/folders/7l/3ys9j0lx20j6z69lm6s_9r780000gn/T/stack-sdist56408/source-files-list
>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>> src/System/Process/Read.hs:287:3)
>> 2016-05-01 15:29:31.728919: [info] Building sdist tarball for
>> /Users/kb/workspace/hedis/ @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>> src/Stack/SDist.hs:98:5)
>> 2016-05-01 15:29:31.756558: [info] Checking package 'hedis' for common
>> mistakes @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>> src/Stack/SDist.hs:274:5)
>> 2016-05-01 15:29:31.758110: [warn] Package check reported the following
>> warnings:
>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>> future GHC versions because new GHC versions often add new warnings. Use
>> just 'ghc-options: -Wall' instead.
>> 'ghc-prof-options: -auto-all' is fine during development, but not
>> recommended in a distributed package.
>>  @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist src/Stack/SDist.hs:285:9)
>> Uploading hedis-0.8.1.tar.gz... TlsExceptionHostPort (HandshakeFailed
>> (Error_Packet_unexpected "Alert [(AlertLevel_Fatal,BadRecordMac)]" "
>> expected: change cipher")) "hackage.haskell.org" 443
>> ➜  hedis git:(master) stack upload .
>> Getting file list for /Users/kb/workspace/hedis/
>> Building sdist tarball for /Users/kb/workspace/hedis/
>> Checking package 'hedis' for common mistakes
>> Package check reported the following warnings:
>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>> future GHC versions because new GHC versions often add new warnings. Use
>> just 'ghc-options: -Wall' instead.
>> 'ghc-prof-options: -auto-all' is fine during development, but not
>> recommended in a distributed package.
>> Uploading hedis-0.8.1.tar.gz... unhandled status code: 400
>> Error: Invalid package
>>
>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>> future GHC versions because new GHC versions often add new warnings. Use
>> just 'ghc-options: -Wall' instead.
>> Upload failed on hedis-0.8.1.tar.gz
>> ```
>>
>> Hope somebody can take a look.
>> Thank you.
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160501/106557bf/attachment.html>


More information about the Haskell-Cafe mailing list