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

Scala 3.6.2 download no longer contains scala3-3.6.2 folder #22194

Closed
francisdb opened this issue Dec 11, 2024 · 6 comments · Fixed by #22199
Closed

Scala 3.6.2 download no longer contains scala3-3.6.2 folder #22194

francisdb opened this issue Dec 11, 2024 · 6 comments · Fixed by #22199
Assignees
Labels
area:language installation Issues tied with how the language utilities are installed area:package-manager itype:bug

Comments

@francisdb
Copy link

This broke the sbt/docker-sbt#313 build

➜  mkdir test
➜  test curl -fsL --show-error https://github.com/lampepfl/dotty/releases/download/3.5.2/scala3-3.5.2.tar.gz | tar xfz - -C ./test
➜  test ll test
total 0
drwxr-xr-x  6 francisdb  staff   192B 11 dec 16:31 scala3-3.5.2
➜  test mkdir test2
➜  test curl -fsL --show-error https://github.com/lampepfl/dotty/releases/download/3.6.2/scala3-3.6.2.tar.gz | tar xfz - -C ./test2
➜  test ll test2
total 8
-rw-r--r--  1 francisdb  staff    69B  9 dec 13:45 VERSION
drwxr-xr-x  9 francisdb  staff   288B  9 dec 13:50 bin
drwxr-xr-x  5 francisdb  staff   160B  9 dec 13:50 lib
drwxr-xr-x  8 francisdb  staff   256B  9 dec 13:50 libexec
drwxr-xr-x  7 francisdb  staff   224B  9 dec 13:50 maven2

Feel free to close this if on purpose. Will work around it in the sbt docker image.

@francisdb francisdb added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Dec 11, 2024
@WojciechMazur
Copy link
Contributor

WojciechMazur commented Dec 11, 2024

The previous intermediate directory was introduced by a bug, we've observed and fixed this issue in coursier as well coursier/apps#256
Probably a won't fix

@Gedochao Gedochao added stat:wontfix area:package-manager and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Dec 11, 2024
@Gedochao Gedochao added the area:language installation Issues tied with how the language utilities are installed label Dec 11, 2024
@mario-grgic
Copy link

This is worse, extracted ./bin/scala bash script does not find scala-cli.jar since it does not correctly find ../libexec directory relative to itself. It is instead expecting to find scala-cli.jar in the same directory where the scala shell script is located.

@WojciechMazur
Copy link
Contributor

This is worse, extracted ./bin/scala bash script does not find scala-cli.jar since it does not correctly find ../libexec directory relative to itself. It is instead expecting to find scala-cli.jar in the same directory where the scala shell script is located.

There's already fix for that, would be shipped in 3.6.3 #22185

@WojciechMazur
Copy link
Contributor

WojciechMazur commented Dec 12, 2024

Seems like it was our mistake, as we're getting more reports of problems related to this issue.

We're going to revert layout of archives to the state from before release 3.6 and follow the Well formed SDK archives format described by Sdkman

We should be able to repackage and replace release artifacts for a hotfix for 3.6.2

@WojciechMazur
Copy link
Contributor

Both of the mentioned issues should be fixed already in republished GH release artifacts

@francisdb
Copy link
Author

Fix confirmed, sbt docker images built successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:language installation Issues tied with how the language utilities are installed area:package-manager itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants