Skip to content

ACF Pro: package's composer.json says name "wpengine/advanced-custom-fields", not "...-pro" #1014

@nlemoine

Description

@nlemoine

composer require wpengine/advanced-custom-fields-pro installs fine from connect.advancedcustomfields.com. But the package it pulls down declares this in its own composer.json:

{
    "name": "wpengine/advanced-custom-fields",
    "type": "wordpress-plugin"
}

So the name inside the package doesn't match the name you distribute it under.

It bites going the other way. I'm migrating sites to a Composer-managed setup, so I read each installed plugin's composer.json to work out what to require. For ACF Pro that gives me wpengine/advanced-custom-fields, which isn't installable, so I special-case it back to -pro.

Any chance the Pro build could declare wpengine/advanced-custom-fields-pro in composer.json? Keeping the replace on the free name would avoid breaking anything else.

(Seen on 6.8.1.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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