Skip to content

fly set-pipeline diff messes up indentation #2185

Closed

Description

@andrewedstrom

Bug Report

When I fly set-pipeline, it shows a diff indicating which lines are being updated:

configuring the 'my-product' pipeline...
resources:
  resource my-product-src has changed:
    name: my-product-src
    type: git
    source:
    +   ignore_paths:
    +   - ci/image/Dockerfile
      private_key: |
...

This diff messes up the indentation. In the actual pipeline.yml, ignore_paths and private_key are on the same indentation level.

Fly set-pipeline should preserve indentation, as git diff does:

--- a/ci/pipelines/my-product.yml
+++ b/ci/pipelines/my-product.yml
@@ -12,6 +12,7 @@ resources:
   source:
     uri: [email protected]:example/my-product.git
     private_key: <private-key>
+    ignore_paths: [ci/image/Dockerfile]
  • Concourse version: 3.11.1
  • Did this used to work? Yes I believe so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions