version: "3"
internal: true

tasks:
  update:
    desc: "Update Go dependencies within major versions (go get -u=patch + go mod tidy)"
    silent: false
    cmds:
      - cmd: |
          cd packages/go/v5 && go get -u=patch ./... && go mod tidy
        ignore_error: false

  upgrade:
    desc: "Upgrade Go dependencies to latest including breaking changes (go get -u + go mod tidy)"
    silent: false
    cmds:
      - cmd: |
          command -v go >/dev/null 2>&1 || { echo "Go not found, skipping Go upgrade"; exit 0; }
          cd packages/go/v5 && go get -u ./... && go mod tidy
        ignore_error: false
