Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 796 Bytes

File metadata and controls

46 lines (33 loc) · 796 Bytes

Working directory

Commands run with cwd = the directory that contains the resolved godo.yaml, not your shell’s cwd.

Walk-up

repo/
  godo.yaml          ← catalog
  scripts/seed.go
packages/api/
  $ pwd
cd packages/api
godo --preview seed

If repo/godo.yaml is the nearest catalog and contains seed: go run ./scripts/seed.go, godo still runs that line with cwd repo/.

Effect: ./scripts/seed.go resolves under repo/, not under packages/api/.

Relative paths in bodies

# repo/godo.yaml
scripts:
  seed: go run ./scripts/seed.go
# from anywhere under repo/
godo seed

Runs (from repo/):

go run ./scripts/seed.go

Next