update compiler to 0.19.1#145
Conversation
Add a hack to work around compiler error when importing non-local kernel models.
|
@drathier can you purge the cache please 👼 |
|
Done, and restarted |
|
Test failure is legit, some sort of sub par version of sed on mac. |
|
LMK when you want a review and/or merge |
|
I would love a review! I think this is the best patch out there to upgrade the compiler to 0.19.1. However, tests/make.sh contains such a nasty collection of hacks that it may be better to keep using elm 0.19.0. |
|
|
||
| FILE_WITH_IMPORT=src/Test/Internal.elm | ||
|
|
||
| sed -i.bak 's/import Elm\.Kernel\.Debug/-- import Elm\.Kernel\.Debug/g' "$FILE_WITH_IMPORT" |
There was a problem hiding this comment.
Is this a workaround for this bug? elm/compiler#2123
There was a problem hiding this comment.
Yes, the other work around would be to permanently delete this import. However, I think it is better to leave the import there as it self documents the use of kernel code.
|
Do we expect to find/avoid any bugs/issues by moving to 0.19.1? It seems like a pretty hacky change. I haven't worked in this code base for a while, so I don't remember what we should be thinking about here. |
|
There is not much difference between elm 0.19.0 and 0.19.1 so unlikely to make much difference. Keeping our dependencies up to date is my main motivation. It also seems like a bit of an issue if the elm test runner's test suite cannot pass with the most recent release of elm. |
|
@rtfeldman @mgold any input? |
|
I don't have strong feelings about this one way or the other...one the one hand, it's not like we're getting a big benefit, but on the other hand, it's two commits, so easy to roll back if we regret it. I'd say feel free to merge if you like, @harrysarson! |
|
@drathier I can squash my commits before we merge this. (I only have commit rights on the test-runner repo not here) |
|
Aight, imma merge this then :) |
|
Thanks for your help! Appreciate the link too :) Caches are nuked, builds restarted, and master is green! |
Upgrading requires a hack to work around compiler error when importing non-local kernel models.
I am not sure it is worth it.