Skip to content

[Bug]: When using persistent workers, files are not created in their correct location #867

@DolceTriade

Description

@DolceTriade

What happened?

With a basic react app with a config that looks like:

ts_project(
    name = "src_ts",
    srcs = glob(
        include = SRC_PATTERNS,
        exclude = TEST_PATTERNS,
    ),
    declaration = True,
    resolve_json_module = True,
    supports_workers = 1,
    transpiler = "tsc",
    tsconfig = "//path:tsconfig",
    deps = [
         ...
    ],
)

I get errors like:

WARNING: Remote Cache: Expected output web/src/App.js was not created locally.
ERROR: /web/src/BUILD.bazel:34:11: output 'security/otac/web/src/App.js' was not created
...

Version

Development (host) and target OS/architectures:

Output of bazel --version:

bazel version
Build label: 8.4.2- (@non-git)
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Jan 01 00:00:00 1980 (315532800)
Build timestamp: 315532800
Build timestamp as int: 315532800

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: bazel_dep(name = "aspect_rules_ts", version = "3.7.1")

Language(s) and/or frameworks involved:
typescript

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions