Skip to content

[BUG] Orb fails with older versions of curl #255

@drewpc

Description

@drewpc

Describe the bug
When running this Orb on Ubuntu version 20.04 with an older version of curl, the download succeeds but the Orb fails to execute the last download step.

To Reproduce
Steps to reproduce the behavior:

  1. Use an executor with the docker image of cimg/base:current-20.04

Expected behavior
The download and codecov CLI commands should succeed.

I believe the issue is with the last command that calls an API with curl and prints a version. This command could be removed or replaced with:

  # Get version from the downloaded binary instead of API                                                                                                                   
  v=$(codecov --version 2>&1 | awk -F', version ' '{print $2}' || echo "unknown")    

Regression
The extra curl option of --retry-all-errors was added in version 5 of this Orb.

Screenshots

Image

Product Area
If applicable, the product with the given bug (e.g. coverage, test analytics, browser extension, bundle analysis)

Versions

  • OS: Ubuntu 20.04
  • CI/CD: [CircleCI
  • Uploader: codecov-circleci-orb@v5

Commit and CI link
Provide the commit SHA and CI link. If applicable, provide the entire Codecov output from CI.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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