Skip to content

info pull does not update extension label/description in composer.json or manifest.xml #929

@shyim

Description

@shyim

Bug Description

The account producer extension info push command reads the extension label (info.Name) and short description (info.ShortDescription) from composer.json extra.label/extra.description (for platform plugins) or manifest.xml <label>/<description> (for apps) and pushes them to the store API.

However, the account producer extension info pull command fetches info.Name and info.ShortDescription from the store API but silently discards them — they are never written back to composer.json, manifest.xml, or any other local file.

Steps to Reproduce

  1. Have a published extension with a label set via composer.json extra.label
  2. Change the extension name in the Shopware Store (via the web UI)
  3. Run shopware-cli account producer extension info pull <path>
  4. Observe that composer.json extra.label is not updated with the new name from the store

Expected Behavior

The pull command should update the label and short description in the source file that the push command reads from:

  • For platform plugins: update extra.label and extra.description in composer.json
  • For apps: update <label> and <description> in manifest.xml

This would make push and pull symmetric operations.

Actual Behavior

The info.Name and info.ShortDescription fields from the API response are fetched but completely ignored during pull. Only store-specific configuration (tags, images, descriptions, FAQs, etc.) is written to .shopware-extension.yml and src/Resources/store/ files.

Code References

  • Push reads labels at account_producer_extension_info_push.go:63-74:

    metadata := zipExt.GetMetaData()
    for _, info := range storeExt.Infos {
        language := info.Locale.Name[0:2]
        if language == "de" {
            info.Name = metadata.Label.German
            info.ShortDescription = metadata.Description.German
        } else {
            info.Name = metadata.Label.English
            info.ShortDescription = metadata.Description.English
        }
    }
  • Pull at account_producer_extension_info_pull.go:127-196 iterates over storeExt.Infos but never uses info.Name or info.ShortDescription.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions