Repository navigation
Relax upper bounds - #179
Conversation
|
Hmm, is there a way to do this patch with less CPP? |
|
If it's ok to have |
|
I don't really have the final say for a package like this, but my preference is that we create a Compat package that centralizes compatibility wrappers around API differences between the old and new versions. |
|
It'S not realised example package, so i'd rather not over-engineer. I'll be ok with CPP or tighter lower bound, otherwise the value of an example degrares |
|
Oops, I didn't realize it was an example package. In that case, updating the version bound to the newest one seems like a clear winner. |
|
Moving to http-client-0.5 for the -http-client bindings seems perfectly fine to me, so let's get rid of the CPP and just change the bounds? |
|
I'm okay with leaving the bounds too by the way, actually. That package is meant to show how http-client can be used together with hackage-security in case, say, Stackage wanted to use it. But I don't know if it's actually being used. With the CPP it would demonstrate I suppose how either version works, and LTS 7 at least still uses http-client 0.4. @dcoutts , opinions? |
|
My opinion here is mostly to encourage reducing CPP usage (and tbh I'm quite surprised Stackage LTS is still holding back http-client-0.5.* adoption which was released back on 05-07-2016 and thereby causing a couple of knock on problems in the process...) :-) |
|
LTS-7 series is released on 2016-09-14. To Stackage's defense, they didn't tried to bump too much until then, but cut GHC-8.0.1 based series from what they got. Right after that, the blocking packages were removed, so e.g. This diff is an interesting datapoint: https://www.stackage.org/diff/nightly-2016-09-14/nightly-2016-09-15 (there was packages blocking on But, remove CPP or leave it? |
|
If |
|
newest release of I'll amend this PR shortly |
|
FYI
|
|
Please merge, or say I can remove CPP in favour of So small change "stuck in committee" |
|
The only purpose of hackage-security-http-client from the very beginning was to make it easier for stack to use hackage-security. If backwards compatibility doesn't matter to stack, let's get rid of the CPP. Incidentally, overlap with #180? |
|
I'll integrate @snoyberg's patch into this, the |
|
Integrated #180 changes. |
|
So it's either "keep CI simple" or "support http-client-0.4". Ping @edsko. |
|
The |
57bfd64 to
b6ebace
Compare
|
Finally green. I miss |
42a9203 to
d7775ec
Compare
|
ping @edsko |
hvr
left a comment
There was a problem hiding this comment.
please drop the ghc-7.4.2 exception
| - HC=${CC} | ||
| - unset CC | ||
| - PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH | ||
| - if [ $GHCVER = "7.4.2" ]; then mv cabal.ghc-7.4.2.project cabal.project; fi |
There was a problem hiding this comment.
This most likely isn't needed and we should avoid it. While Stack may have problems coping with that configuration I honestly doubt that Cabal has any issues with this. Have you run into an actual problem? Also it'd defeat the purpose of CI if we exclude configurations even though they're declared to be compatible via build-depends.
fafb3b6 to
525f340
Compare
- constrained hackage-security - everything together
|
Green again. |
hvr
left a comment
There was a problem hiding this comment.
I was planning to do exactly what you did (i.e. additionally testing smaller subsets of the install-plan) ... now I don't have to anymore :-) 👍
| # build all packages and run testsuite | ||
|
|
||
| # first build just hackage-security with installed constraints, with and without tests. | ||
| # silly yaml, seeing : colon |
There was a problem hiding this comment.
yeah... just one of many YAML silliness ;-)
|
I'll try to code-review to make sure that the relaxation to the new major versions of |
Is it ok to add released packages to Stackage, so we get pinged when bounds are restrictive?
hackage-securityis anyhow there, as it's depended bycabal-install.