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
Describe the bug
When both the project_id key is specified in crowdin.yml and the environment variable CROWDIN_PROJECT_ID is set, the environment variable takes precedence, even if the project_id_env key is not defined in the configuration. This results in a misleading error when the environment variable contains an invalid value.
To Reproduce
Steps to reproduce the behavior:
Set a valid project_id in crowdin.yml.
Set an environment variable with a non-numeric value, e.g., CROWDIN_PROJECT_ID=abcd.
Run CLI command: crowdin lint
Observe the error: "❌ Configuration file is invalid ... - Option 'project_id' must be a numeric value"
Expected behavior
The CROWDIN_PROJECT_ID environment variable should not be used unless the project_id_env key is explicitly set in crowdin.yml. The CLI should prioritize the project_id key from the configuration file in this case.
Environment:
OS: MacOS 14.16.1
Version 4.1.2 (installed via Homebrew)
Additional context
Our team has been using Crowdin since the early CLI versions. Some users still have alphanumeric project IDs set as environment variables, which causes confusion due to the misleading error.
The text was updated successfully, but these errors were encountered:
Describe the bug
When both the project_id key is specified in crowdin.yml and the environment variable CROWDIN_PROJECT_ID is set, the environment variable takes precedence, even if the project_id_env key is not defined in the configuration. This results in a misleading error when the environment variable contains an invalid value.
To Reproduce
Steps to reproduce the behavior:
CROWDIN_PROJECT_ID=abcd
.crowdin lint
Expected behavior
The CROWDIN_PROJECT_ID environment variable should not be used unless the project_id_env key is explicitly set in crowdin.yml. The CLI should prioritize the project_id key from the configuration file in this case.
Environment:
Additional context
Our team has been using Crowdin since the early CLI versions. Some users still have alphanumeric project IDs set as environment variables, which causes confusion due to the misleading error.
The text was updated successfully, but these errors were encountered: