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

Bump to lts-14.27 #1030

Merged
merged 6 commits into from
Mar 30, 2020
Merged

Bump to lts-14.27 #1030

merged 6 commits into from
Mar 30, 2020

Conversation

arianvp
Copy link
Contributor

@arianvp arianvp commented Mar 26, 2020

Depends on https://github.com/wireapp/hscim/pull/44

I was wondering if bumping would work without too many changes; and it seems it did :)

@arianvp
Copy link
Contributor Author

arianvp commented Mar 26, 2020

We seem to hardcode LTS in CI; do we have to? it's a bit annoying we have to do this in two places

https://github.com/wireapp/wire-server-private/blob/d4594cf03c1756381639d86e513ab883c8587450/ci/dockerfiles/ubuntu14-ghc-8/Dockerfile#L7

stack.yaml Outdated
- servant-swagger-1.1.7.1@rev:2
- swagger2-2.5
# - servant-swagger-1.1.7.1@rev:2
# - swagger2-2.5
Copy link
Contributor

Choose a reason for hiding this comment

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

what happened with swagger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

revision two was added to 14.27 https://www.stackage.org/lts-14.27/package/servant-swagger-1.1.7.1

swagger2-2.5 I accidentally dropped. Good catch. However it still compiles. What was released in 2.5 that we need?

I'll just add it back for now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fisx was there a specific reason why we were on 2.5 ? Dropping it to 2.4 worked fine (no dependency conflicts or compiler errors)

Copy link
Contributor Author

@arianvp arianvp Mar 27, 2020

Choose a reason for hiding this comment

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

The swagger2-2.5 release on hackage does not even compile for me. I'm confused. Given @fisx is maintainer of this package maybe he knows what is up here? 86ed405

switching back to swagger2-2.4 leads to no issues

Copy link
Contributor

Choose a reason for hiding this comment

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

swagger2-2.5 is nice, but not important. I'll see if i can fix the issue upstream, then we can just wait for the next release.

arianvp and others added 3 commits March 27, 2020 14:44
I get very weird compiler errors here

swagger2                         > /run/user/1000/stack-906dad31b66172ef/swagger2-2.5/src/Data/Swagger/Optics.hs:153:10: error:
swagger2                         >     • Couldn't match type ‘Join
swagger2                         >                              A_Lens
swagger2                         >                              (IxKind
swagger2                         >                                 (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                    HttpStatusCode (Referenced Response)))’
swagger2                         >                      with ‘An_AffineTraversal’
swagger2                         >         arising from a use of ‘%’
swagger2                         >     • In the expression: #responses % ix n
swagger2                         >       In an equation for ‘ix’: ix n = #responses % ix n
swagger2                         >       In the instance declaration for ‘Ixed Responses’
swagger2                         >     |
swagger2                         > 153 |   ix n = #responses % ix n
swagger2                         >     |          ^^^^^^^^^^^^^^^^^
swagger2                         >
swagger2                         > /run/user/1000/stack-906dad31b66172ef/swagger2-2.5/src/Data/Swagger/Optics.hs:153:23: error:
swagger2                         >     • Couldn't match type ‘IxValue
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))’
swagger2                         >                      with ‘Referenced Response’
swagger2                         >       Expected type: Optic
swagger2                         >                        (IxKind
swagger2                         >                           (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                              HttpStatusCode (Referenced Response)))
swagger2                         >                        NoIx
swagger2                         >                        (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                           HttpStatusCode (Referenced Response))
swagger2                         >                        (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                           HttpStatusCode (Referenced Response))
swagger2                         >                        (Referenced Response)
swagger2                         >                        (Referenced Response)
swagger2                         >         Actual type: Optic'
swagger2                         >                        (IxKind
swagger2                         >                           (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                              HttpStatusCode (Referenced Response)))
swagger2                         >                        NoIx
swagger2                         >                        (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                           HttpStatusCode (Referenced Response))
swagger2                         >                        (IxValue
swagger2                         >                           (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                              HttpStatusCode (Referenced Response)))
swagger2                         >     • In the second argument of ‘(%)’, namely ‘ix n’
swagger2                         >       In the expression: #responses % ix n
swagger2                         >       In an equation for ‘ix’: ix n = #responses % ix n
swagger2                         >     |
swagger2                         > 153 |   ix n = #responses % ix n
swagger2                         >     |                       ^^^^
swagger2                         >
swagger2                         > /run/user/1000/stack-906dad31b66172ef/swagger2-2.5/src/Data/Swagger/Optics.hs:153:26: error:
swagger2                         >     • Couldn't match type ‘Index
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))’
swagger2                         >                      with ‘HttpStatusCode’
swagger2                         >       Expected type: Index
swagger2                         >                        (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                           HttpStatusCode (Referenced Response))
swagger2                         >         Actual type: Index Responses
swagger2                         >     • In the first argument of ‘ix’, namely ‘n’
swagger2                         >       In the second argument of ‘(%)’, namely ‘ix n’
swagger2                         >       In the expression: #responses % ix n
swagger2                         >     |
swagger2                         > 153 |   ix n = #responses % ix n
swagger2                         >     |                          ^
swagger2                         >
swagger2                         > /run/user/1000/stack-906dad31b66172ef/swagger2-2.5/src/Data/Swagger/Optics.hs:156:10: error:
swagger2                         >     • Couldn't match type ‘IxValue
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))’
swagger2                         >                      with ‘Referenced Response’
swagger2                         >       Expected type: Lens' Responses (Maybe (IxValue Responses))
swagger2                         >         Actual type: Optic
swagger2                         >                        A_Lens
swagger2                         >                        NoIx
swagger2                         >                        Responses
swagger2                         >                        Responses
swagger2                         >                        (Maybe
swagger2                         >                           (IxValue
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))))
swagger2                         >                        (Maybe
swagger2                         >                           (IxValue
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))))
swagger2                         >     • In the expression: #responses % at n
swagger2                         >       In an equation for ‘at’: at n = #responses % at n
swagger2                         >       In the instance declaration for ‘At Responses’
swagger2                         >     |
swagger2                         > 156 |   at n = #responses % at n
swagger2                         >     |          ^^^^^^^^^^^^^^^^^
swagger2                         >
swagger2                         > /run/user/1000/stack-906dad31b66172ef/swagger2-2.5/src/Data/Swagger/Optics.hs:156:26: error:
swagger2                         >     • Couldn't match type ‘Index
swagger2                         >                              (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                                 HttpStatusCode (Referenced Response))’
swagger2                         >                      with ‘HttpStatusCode’
swagger2                         >       Expected type: Index
swagger2                         >                        (Data.HashMap.Strict.InsOrd.InsOrdHashMap
swagger2                         >                           HttpStatusCode (Referenced Response))
swagger2                         >         Actual type: Index Responses
swagger2                         >     • In the first argument of ‘at’, namely ‘n’
swagger2                         >       In the second argument of ‘(%)’, namely ‘at n’
swagger2                         >       In the expression: #responses % at n
swagger2                         >     |
swagger2                         > 156 |   at n = #responses % at n
swagger2                         >     |                          ^
swagger2                         >
@fisx
Copy link
Contributor

fisx commented Mar 27, 2020

We seem to hardcode LTS in CI; do we have to? it's a bit annoying we have to do this in two places

https://github.com/wireapp/wire-server-private/blob/d4594cf03c1756381639d86e513ab883c8587450/ci/dockerfiles/ubuntu14-ghc-8/Dockerfile#L7

Yes, that looks redundant, but I don't think it's necessary that the resolver there and the one of wire-server are the same. In the docker image it is just used to build some haskell-related executables, no?

Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

works for me locally now.

@arianvp arianvp merged commit f990453 into develop Mar 30, 2020
@arianvp arianvp deleted the lts-14.27 branch March 30, 2020 12:01
@akshaymankar akshaymankar mentioned this pull request Apr 15, 2020
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.

None yet

3 participants