circleci config pack added an additional trailing newline regardless if source configs already have it.
So, in following example src config temp_cfg.yml already has trailing newline, and temp_cfg2.yml will have 2 trailing newline after packing.
It could break workflows where pre-commit hook end-of-file-fixer is using.
andreiromanov > circleci config pack temp_cfg.yml > temp_cfg2.yml
andreiromanov > diff temp_cfg.yml temp_cfg2.yml
18a19
>

Meta:
CircleCI CLI Version:
Macos Sequioia 15.5
andreiromanov > circleci version
0.1.32367+16777db (homebrew)
andreiromanov > circleci diagnostic
---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/andreiromanov/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Hello, Andrei Romanov.
circleci config packadded an additional trailing newline regardless if source configs already have it.So, in following example src config
temp_cfg.ymlalready has trailing newline, andtemp_cfg2.ymlwill have 2 trailing newline after packing.It could break workflows where pre-commit hook
end-of-file-fixeris using.Meta:
CircleCI CLI Version:
Macos Sequioia 15.5