You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently doesn't seem to be a way to tell cabal sdist to trust me about -O2.
This means it always returns 1.
Since it cries wolf I can't use it in automated tools as part of my testing process to validate more interesting parts of the tar ball are all present.
The text was updated successfully, but these errors were encountered:
You mean ghc-options: -O2? IIUC, it's already supposed to work this way.
-- | Like PackageDistSuspicious but will only display warnings
-- rather than causing abnormal exit.
| PackageDistSuspiciousWarn { explanation :: String }
@ekmettDid you mean cabal check instead of cabal sdist? On my machine cabal sdist does not give any warnings. Anyway, cabal check ends with exit code 1, listing only -O2 warning.
@23SkidooI am happy to work on this issue. Should I be assigned to it?
EDIT: Sorry, I ran wrong version of cabal executable. I cannot reproduce this bug:
sznurek@trampek : /tmp/test-cabal
[0] % cabal sdist
Distribution quality warnings:
'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit
and not just imposing longer compile times on your users.
Building source dist for test-cabal-0.1.0.0...
Preprocessing executable 'test-cabal' for test-cabal-0.1.0.0...
Source tarball created: dist/test-cabal-0.1.0.0.tar.gz
sznurek@trampek : /tmp/test-cabal
[0] % echo $?
0
sznurek@trampek : /tmp/test-cabal
[0] % cabal --version
cabal-install version 1.22.2.0
using version 1.22.2.0 of the Cabal library
There currently doesn't seem to be a way to tell
cabal sdist
to trust me about -O2.This means it always returns 1.
Since it cries wolf I can't use it in automated tools as part of my testing process to validate more interesting parts of the tar ball are all present.
The text was updated successfully, but these errors were encountered: