Skip to content

after dist/mkPack, running ./dist/bin/scalac doesn't work #15588

Closed as not planned
@som-snytt

Description

@som-snytt

Compiler version

Latest

Minimized code

Scala 2 repo:

$ sbt dist/mkPack

$ build/pack/bin/scalac -version
Scala compiler version 2.13.5-20201119-215247-c758143 -- Copyright 2002-2020, LAMP/EPFL and Lightbend, Inc.

Output

Scala 3 repo:

$ sbt -no-colors dist/pack
[fix CR-NL in script files]
$ dist/bin/scalac -version
Error: Could not find or load main class dotty.tools.MainGenericCompiler
Caused by: java.lang.ClassNotFoundException: dotty.tools.MainGenericCompiler

However, release versions work

$ sdk use scala 3.1.3
$ scalac -version
Scala compiler version 3.1.3 -- Copyright 2002-2022, LAMP/EPFL

Expectation

Just work.

Also we need to pun on dist/bin and dust/bin.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions