Skip to content

vendir sync --json swallows error #357

@hans-d

Description

@hans-d

What steps did you take:

  • have a vendir.yaml that produces an error, eg
vendir: Error: Syncing directory 'foo':
  Copying another directory contents into directory 'bar': lstat ../src/foo: no such file or directory
  • run vendir sync: produces a nice error
  • run vendir sync --json

What happened:
produces no error, but does exit with code 1

What did you expect:
error message like without --json, in json and/or to stderr

Environment:

  • vendir version (execute vendir --version): vendir version 0.38.0
  • OS (e.g. from /etc/os-release): debian bookworm

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a defect or unexpected behaviorcarvel-acceptedThis issue should be considered for future work and that the triage process has been completed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Prioritized Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions