Prevent silent fail

Open
#104 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli, devops

Research direction

Start by reproducing the shown fetch command with an authorization failure and trace how the error is logged and returned. Identify the CLI entry point and error-handling path involved; done means an authorization or download failure can produce a non-zero exit code when the requested behavior is enabled, without allowing the pipeline to continue silently.

Written by the indexing model from the issue text.

Description

enhancement

Hi!,

We are using this command in our CI/CD pipeline:

fetch --repo="https://github.com/..." --tag="1.0.9" --github-oauth-token="****" --release-asset="example-v1.0.9.zip" tmp-path

Yesterday this command fails because of a GitHub authorization error, however, it only logs the error instead of exiting with non-zero code this causes the pipeline to continue then exist on another step that depends on what has been downloaded by fetch.

Please we need an option to exit on error.

Dominant language
Go
Stars
625
Forks
92
Avg merge
12h 56m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/fetch

All issues in gruntwork-io/fetch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.