Skip to content

Running wp amp docs generate fails with wp-env #7501

Closed
@westonruter

Description

@westonruter

Bug Description

Running this command:

npx wp-env run cli wp amp docs generate

Results in:

Warning: file_put_contents(/var/www/html/wp-content/plugins/amp/docs/docs.json): failed to open stream: Permission denied in /var/www/html/wp-content/plugins/amp/docs/src/Cli/GenerateCommand.php on line 64
Error: Problem writing data to file '/var/www/html/wp-content/plugins/amp/docs/docs.json'

This may be an upstream issue. In particular WordPress/gutenberg#28201 and/or WordPress/gutenberg#22515.

Expected Behaviour

The JSON file should be writable.

Screenshots

No response

PHP Version

No response

Plugin Version

2.4.1

AMP plugin template mode

Standard, Transitional, Reader

WordPress Version

No response

Site Health

No response

Gutenberg Version

No response

OS(s) Affected

No response

Browser(s) Affected

No response

Device(s) Affected

No response

Acceptance Criteria

No response

Implementation Brief

No response

QA Testing Instructions

No response

Demo

No response

Changelog Entry

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingChangeloggedWhether the issue/PR has been added to release notes.

    Type

    No type

    Projects

    Status

    QA Passed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions