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

Scaffold: Only return compatible compiler versions #35

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

tindzk
Copy link
Owner

@tindzk tindzk commented Jul 24, 2019

If Typelevel Scala 2.12.4 is used along with Scala.js, the latest
compiler version could not be determined during seed update:

Platform compiler versions
╭────────────┬──────────────┬──────────┬────────────────────────╮
│ Platform   │ Organisation │ Compiler │ Version                │
├────────────┼──────────────┼──────────┼────────────────────────┤
│ JVM        │ Typelevel    │ Scala    │ 2.12.4-bin-typelevel-4 │
│ JavaScript │ Typelevel    │ Scala    │ Not available          │
│            │ Scala.js     │ Plug-in  │ Not available          │
╰────────────┴──────────────┴──────────┴────────────────────────╯

This is due to the fact that Scala.js supports Scala 2.13, and if
all libraries are compatible, choosePlatformConfiguration() would
choose 2.13 over 2.12. However, Typelevel Scala does not have a
stable 2.13 release which is why the columns above state "Not
available".

Change fetchCompilerVersions() such that for all non-JVM platforms
it filters out any Scala versions that are incompatible with the
ones offered by the organisation.

@tindzk tindzk force-pushed the bug/fetch-compiler-versions branch from 69a856e to 2565e31 Compare July 25, 2019 08:22
If Typelevel Scala 2.12.4 is used along with Scala.js, the latest
compiler version could not be determined during `seed update`:

```
Platform compiler versions
╭────────────┬──────────────┬──────────┬────────────────────────╮
│ Platform   │ Organisation │ Compiler │ Version                │
├────────────┼──────────────┼──────────┼────────────────────────┤
│ JVM        │ Typelevel    │ Scala    │ 2.12.4-bin-typelevel-4 │
│ JavaScript │ Typelevel    │ Scala    │ Not available          │
│            │ Scala.js     │ Plug-in  │ Not available          │
╰────────────┴──────────────┴──────────┴────────────────────────╯
```

This is due to the fact that Scala.js supports Scala 2.13, and if
all libraries are compatible, `choosePlatformConfiguration()` would
choose 2.13 over 2.12. However, Typelevel Scala does not have a
stable 2.13 release which is why the columns above state "Not
available".

Change `fetchCompilerVersions()` such that for all non-JVM platforms
it filters out any Scala versions that are incompatible with the
ones offered by the organisation.
@tindzk tindzk merged commit 4829fa0 into master Jul 25, 2019
@tindzk tindzk deleted the bug/fetch-compiler-versions branch July 25, 2019 09:49
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.

1 participant