Skip to content

metadata.json structure is rewritten after increase version #96

Description

@rmestrum

When I increase the version of the module with with the rake task for example module:bump:minor, a new metadata.json is created.
When this file created, the format is changed into a pretty format.

It would be nice if there is a possibility to maintain the current formatting.

For example.

{
  "name": "org-my_module",
  "version": "1.1.2",
  "author": "Me",
  "license": "Apache-2.0",
  "summary": "summary",
  "source": "https://github.com",
  "project_page": "https://github.com",
  "issues_url": "https://github.com",
  "tags": ["tag1","tag2"],
  "operatingsystem_support": [
    { "operatingsystem": "RedHat", "operatingsystemrelease": [ "6", "7" ] },
    { "operatingsystem": "CentOS", "operatingsystemrelease": [ "6", "7" ] }
  ],
  "dependencies": [
    { "name": "puppetlabs/stdlib", "version_requirement": ">=4.25.0 <7.0.0" }
  ]
}

is not rewritten to

{
  "name": "org-my_module",
  "version": "1.1.2",
  "author": "Me",
  "license": "Apache-2.0",
  "summary": "summary",
  "source": "https://github.com",
  "project_page": "https://github.com",
  "issues_url": "https://github.com",
  "tags": [
    "tag1",
    "tag2"
  ],
  "operatingsystem_support": [
    { 
      "operatingsystem": "RedHat", 
      "operatingsystemrelease": [ 
        "6", 
        "7" 
      ]
    },
    { 
      "operatingsystem": "CentOS", 
      "operatingsystemrelease": [ 
        "6", 
        "7" 
      ]
    }
  ],
  "dependencies": [
    { 
      "name": "puppetlabs/stdlib",  
      "version_requirement": ">=4.25.0 <7.0.0" 
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions