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

Consider changing the package #99

Open
jackkoenig opened this issue Dec 15, 2023 · 0 comments
Open

Consider changing the package #99

jackkoenig opened this issue Dec 15, 2023 · 0 comments

Comments

@jackkoenig
Copy link

I noticed that adding this as a dependency (transitively via io.get-coursier::coursier-cache) breaks any Scala code that uses scala.io.Source but drops the scala, eg.

//> using scala "2.13"
//> using lib "io.get-coursier::coursier-cache:2.1.8"

object Main extends App {
  io.Source.fromString("Hello World").getLines.foreach(println)
}

Running the above with scala-cli gives:

[error] ./coursier.scala:5:3
[error] object Source is not a member of package io
[error]   io.Source.fromString("Hello World").getLines.foreach(println)
[error]   ^^^^^^^^^

Perhaps eliding the scala. in io.Source is ill-advised, but I think it would help a lot of downstream users if this project didn't start with package io.

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

No branches or pull requests

1 participant