Skip to content

[BUG] cog verify $commit doesn't output to stdout #513

@cwrau

Description

@cwrau

Describe the bug
We're testing if a PR has a readme change if the commit is a breaking change; for checking if the commit is a breaking change we use cog verify $commit 2>&1 | grep 'BREAKING CHANGE', which looks fine at first sight, but the 2>&1 is making it silently fail because the command not found: cog message is swallowed

To Reproduce
PATH= cog verify "feat: feature" 2>&1 | grep feature "incorrectly" fails because the cog command can't be found.

Expected behavior
Normal output should be on stdout.

Additional context
If the log would've contained command not found: cog we would've seen this immediately instead of debugging for ~30 minutes.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions