Skip to content

build command throws ENOENT #1194

@zanona

Description

@zanona

Is bash necessary for executing the build command?

$ netlify  build --context=development --debug

┌─────────────────────────────┐
│        Netlify Build        │
└─────────────────────────────┘
​
❯ Version
  @netlify/build 3.3.5
​
❯ Flags
  mode: cli
​
❯ Current directory
  /mnt/app
​
❯ Config file
  /mnt/app/netlify.toml
​
❯ Context
  development
​
┌────────────────────────────────────┐
│ 1. build.command from netlify.toml │
└────────────────────────────────────┘
​
$ echo testCommand


┌─────────────────────────────┐
│   "build.command" failed    │
└─────────────────────────────┘
​
  Error message
  Command failed with ENOENT: echo testCommand
  spawn bash ENOENT
​
  Error location
  In build.command from netlify.toml:
  echo testCommand
​
  Resolved config
  build:
    command: echo testCommand
    commandOrigin: config
    environment: ...

Expected:

await runBuildCommand(t, builder.directory, { output: 'testCommand' })

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions