Skip to content

'No such file or directory' on Windows #641

@majcherm-da

Description

@majcherm-da

rules_scala doesn't work properly on Windows.

This can be reproduced by building:

bazel test //test:HelloLibTest

on rules_scala itself (test folder).

After switching to a commit before: https://github.com/bazelbuild/rules_scala/pull/568/files/bd8ff42e35d8f8bb0181aea5cf0439512c6df32e
which introduced another issue (reported here: #642), this is what I'm getting:
scala_rules_runfiles

It tries to lookup a JAVABIN wrapper in <name>.runfiles folder, but this one is almost empty on Windows.

(Similar thing happens for rules_java - this folder is also almost empty, but in case of java a different laucher is used for which this doesn't cause a problem:
https://github.com/bazelbuild/bazel/blob/556839466dd49958a6b058a3a4c2ad341c8d06f1/src/main/java/com/google/devtools/build/lib/bazel/rules/java/BazelJavaSemantics.java#L380)

Wrapper script is properly generated, but it resides in the same location as runfiles directory only. On unix boxes the file is present in both locations and thus it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions