Skip to content

Commit

Permalink
Disable telemetry when validating config (#2)
Browse files Browse the repository at this point in the history
This PR disables telemetry when validating the config. Without this, the first time precommit runs the hook in an interactive terminal, it will hang indefinitely. It is waiting for the user to make a choice on whether to send telemetry to CircleCI, but that log is not shown in the terminal.
  • Loading branch information
laurence-kobold authored Nov 13, 2024
1 parent 1ac97fc commit da06d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/circleci-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if ! command -v circleci &>/dev/null; then
exit 1
fi

circleci config validate
CIRCLECI_CLI_TELEMETRY_OPTOUT=true circleci config validate

0 comments on commit da06d19

Please sign in to comment.