You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem codacy-analysis-cli doesn't respect CODACY_API_BASE_URL even when it is set and exported correctly, and it defaults to https://api.codacy.com instead.
Steps to reproduce
We are using codacy-analysis-cli version 7.9.12. We are trying to configure base URL for Codacy to use our custom host. We tried doing it by exporting the CODACY_API_BASE_URL env variable, And then we tried to run the Codacy Analysis CLI tool using the following command but got the following logs:
$ java -jar codacy-analysis-cli.jar analyze --verbose --upload --tool deadcode --commit-uuid de0665171ac454ca05a0ca93698121bf900e3975
02/04 12:35:54 INFO c.c.a.c.c.Environment:74 - API base URL found in argument `--codacy-api-base-url`
02/04 12:35:54 INFO c.c.a.c.c.Environment:65 - Using API base URL https://api.codacy.com
Our command doesn't include --codacy-api-base-url as an argument, but logs indicate opposite.
The text was updated successfully, but these errors were encountered:
I think the CLI argument --codacy-api-base-url is set to default in this line. My theory is that it is always assuming Some("https://api.codacy.com") value and never uses the env parameters as a fallback.
Problem
codacy-analysis-cli
doesn't respectCODACY_API_BASE_URL
even when it is set and exported correctly, and it defaults tohttps://api.codacy.com
instead.Steps to reproduce
We are using
codacy-analysis-cli
version7.9.12
. We are trying to configure base URL for Codacy to use our custom host. We tried doing it by exporting theCODACY_API_BASE_URL
env variable, And then we tried to run the Codacy Analysis CLI tool using the following command but got the following logs:Our command doesn't include
--codacy-api-base-url
as an argument, but logs indicate opposite.The text was updated successfully, but these errors were encountered: