Skip to content

[Bug]: new js_image_layer code breaks backwards compatability with rules_nodejs v5 #2193

@Aghassi

Description

@Aghassi

What happened?

Upgrading to the latest minor 3.5 from 3.2 I find that js_image_layer no longer resolves node from the the toolchain correctly for users on rules_nodejs v5. I understand there are some work arounds in other areas and I understand that ideally everyone is on v6. However, we have not fully migrated to rules_nodejs v6 because we have to migrate existing apps to rules_js which is yet to happen.

I made PR #2186 to try and addres the issue, but it internally broke because the layer doesn't build on macos correctly but it does on linux. ON macos it resolves the linux binary.

Version

Development (host) and target OS/architectures:

Output of bazel --version: 7.x

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: 3.5.2

Language(s) and/or frameworks involved:
JS

How to reproduce

Honestly just reach out to me and I'm happy to pair, I don't know how to repro outside of my companies code off hand :)

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcan close?Waiting on confirmation of resolution from reporter before closing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions