Skip to content

Make migrate script (more) idempotent #116

Description

@strarsis

Summary

Using the migrate-from-wpackagist.sh script multiple times results in the wp-packages repository being added multiple times to repository field in the composer.json.

composer.json after two invocations of migrate-wpackagist.sh:

{
  "repositories": [
    [...]
    {
      "name": "wp-packages",
      "type": "composer",
      "url": "https://repo.wp-packages.org"
    },
    {
      "name": "wp-packages",
      "type": "composer",
      "url": "https://repo.wp-packages.org"
    }
  ],

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions