enterprise-contract / ec-cli

Enterprise Contract command line interface
https://enterprisecontract.dev/docs/ec-cli/main/index.html
Apache License 2.0
27 stars 29 forks source link

Enable go-gather functionality via env var #1722

Closed robnester-rh closed 3 months ago

robnester-rh commented 3 months ago

This commit allows for using the go-gather library in lieu of the conftest-download functionality. In order to utilize go-gather, set the USEGOGATHER environmental variable to 1, i.e.

USEGOGATHER=1 ec validate input [...]
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.86%. Comparing base (016598f) to head (f286767). Report is 13 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/graphs/tree.svg?width=650&height=150&src=pr&token=CY5ORXJB33&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract)](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) ```diff @@ Coverage Diff @@ ## main #1722 +/- ## ========================================== + Coverage 80.27% 86.86% +6.59% ========================================== Files 67 78 +11 Lines 4861 5217 +356 ========================================== + Hits 3902 4532 +630 + Misses 959 685 -274 ``` | [Flag](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [acceptance](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `71.84% <44.44%> (?)` | | | [generative](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.28% <77.77%> (+0.01%)` | :arrow_up: | | [integration](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.28% <77.77%> (+0.01%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.28% <77.77%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [internal/downloader/downloader.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722?src=pr&el=tree&filepath=internal%2Fdownloader%2Fdownloader.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvZG93bmxvYWRlci9kb3dubG9hZGVyLmdv) | `96.77% <100.00%> (+16.77%)` | :arrow_up: | | [internal/utils/helpers.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722?src=pr&el=tree&filepath=internal%2Futils%2Fhelpers.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvdXRpbHMvaGVscGVycy5nbw==) | `88.15% <100.00%> (+20.59%)` | :arrow_up: | ... and [39 files with indirect coverage changes](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1722/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract)