Skip to content

Expose the ability to get the path of a sidecar binary at runtime #2151

Open
@tlentz

Description

@tlentz

Describe the problem

In my case, I have 2 binaries that I need to include as sidecars (with the platform triple). One of these binaries depends on the other and needs the path to the binary passed in through the environment, but today there is no way to get the path to a sidecar binary at runtime.

Describe the solution you'd like

I would like to be able to do something like so:

let sidecarOne = Command.sidecar("program-one", ...);
let sidecarOnePath = sidecarOne.getPath();

let sidecarTwo = Command.sidecar("program-two", [...args], { env: { PROGRAM_ONE_PATH: sidecarOnePath } });

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📬Proposal

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions