Skip to content

fix: Check if CQ_ANALYTICS_HOST exists to determine if a custom host is set#18124

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:fix/analytics_host
Jun 4, 2024
Merged

fix: Check if CQ_ANALYTICS_HOST exists to determine if a custom host is set#18124
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:fix/analytics_host

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Noticed this while working on adding Rudderstack to the CLI. os.Getenv("CQ_ANALYTICS_HOST") returns an empty string if the env variable is not set, so not setting it means customAnalyticsHost is always true.

@erezrokah erezrokah requested review from a team and marianogappa and removed request for a team June 4, 2024 10:31
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jun 4, 2024
@cq-bot cq-bot added the area/cli label Jun 4, 2024
@kodiakhq kodiakhq bot merged commit c6f5bbf into cloudquery:main Jun 4, 2024
kodiakhq bot pushed a commit that referenced this pull request Jun 6, 2024
🤖 I have created a release *beep* *boop*
---


## [5.20.5](cli-v5.20.4...cli-v5.20.5) (2024-06-06)


### Bug Fixes

* Check if `CQ_ANALYTICS_HOST` exists to determine if a custom host is set ([#18124](#18124)) ([c6f5bbf](c6f5bbf))
* Progressbar related error when `log-console` option is used ([#18161](#18161)) ([bbac469](bbac469))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants