Closed andrewthetechie closed 2 years ago
Thanks for opening the issue @andrewthetechie ❤️ I've created a fix for this in https://github.com/cloudquery/cloudquery/pull/748
@erezrokah ty for the quick fix!
I built cloudquery from git with your fixes this morning, but I am still having the same issue.
CQ_REATTACH_PROVIDERS=/Users/andrew/Documents/code/cq-provider-datadog/.cq_reattach ./cloudquery fetch --no-verify
Anonymous telemetry collection and crash reporting enabled. Run with --no-telemetry to disable, or check docs at https://docs.cloudquery.io/docs/cli/telemetry
Syncing CloudQuery providers [datadog@latest]
Initializing CloudQuery Providers...
❌ failed to initialize provider: failed to download providers: failed to find provider[datadog] latest version.
Diagnostics:
Type: Internal Severity: Error
Summary: failed to download providers: failed to find provider[datadog] latest version
Sync Diagnostics:
Type: Internal Severity: Error
Summary: failed to download providers: failed to find provider[datadog] latest version```
./cloudquery version
Version: development
Commit: development
Date: unknown```
Thanks for testing! I'll re-open the issue while I'm taking a look at this
@andrewthetechie should handle this https://github.com/andrewthetechie/cq-provider-datadog/pull/1, and we'll look into a way of avoiding this pitfall in the future
Ty for the help @erezrokah - I had made that change here https://github.com/andrewthetechie/cq-provider-datadog/blob/initial-dev/resources/provider/provider.go#L22 but I see the issue - Datadog vs datadog.
Success! I changed 'Datadog' to 'datadog' and fetching went right through with your fixes.
Describe the Bug
While trying to develop my own provider, I am having issues in attempting to test it. Cloudquery always does a lookup against the hub and when it fails to find my provider, it fails. My provider is not listed in the hub.
Expected Behavior
In debug mode, cloudquery uses the local version of my provider via CQ_REATTACH_PROVIERS without talking to the hub.
CloudQuery Version
Version: 0.23.4 Commit: 96ec2c96eb6fd8dc67e8f7f666618a8bcfbdd262 Date: 2022-05-17T14:33:18Z
Debug Output
In a second terminal
Config.hcl
Steps to Reproduce
Additional Context
Fixing this might issue might be closely related to https://github.com/cloudquery/cloudquery/issues/738