moon: [bug] Moon cannot find system binary

Describe the bug

Moon doesn’t seem to be able to resolve a system binary.

Steps to reproduce

.moon/workspace.yml

# https://moonrepo.dev/docs/config/workspace
$schema: 'https://moonrepo.dev/schemas/workspace.json'

projects:
  - 'apps/*'
  - 'infra/*'
  - 'packages/*'
  - 'services/*'
  - '.'

vcs:
  manager: 'git'
  defaultBranch: 'main'

Root ./moon.yml

# https://moonrepo.dev/docs/config/tasks
$schema: 'https://moonrepo.dev/schemas/tasks.json'

tasks:
  'db-migrate':
    command: 'goose -allow-missing=true -dir infra/migrations up'
    envFile: true

Install Go curl -L https://git.io/vQhTU | bash Install Goose go install github.com/pressly/goose/v3/cmd/goose@latest

Then run moon run <rootName>:db-migrate

Expected behavior

Moon finds the binary and runs it

Actual Behavior

 ERROR  Unable to find a binary for goose. Have you installed the corresponding dependency?

Environment

MacOs Ventura M2

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15

Most upvoted comments

v1 now wraps system tasks in a shell. Can you see if the bin is found now?