Skip to content

circleci config pack not respect newline #1148

Description

@ansromanov

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
> 

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions