Skip to content

process.env gets auto-forwarded #156

Description

@Andarist

tinyexec/src/env.ts

Lines 57 to 65 in 8a4ccde

export function computeEnv(
cwd: string,
env?: EnvLike,
nodePath: boolean = true
): EnvLike {
const envWithDefault = {
...process.env,
...env
};

This is surprising and different from the spawn behavior. It's also not quite what we always want given it's common for API keys and secrets to be available in the process.env.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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