Skip to content

[Playground CLI] skip-wordpress-setup overrides the mounted WordPress directory #2374

Open
@bgrgicak

Description

@bgrgicak

When I use the --skip-wordpress-setup argument with the Playground CLI (on trunk) it modifies the mounted WordPress directory by overriding WordPress files.

Steps to recreate

  • Download WordPress and extract it to /MY-PATH/
  • Modify one WordPress file
  • Start Playground by mounting this directory
npx @wp-playground/cli@latest 
	server \
    --skip-wordpress-setup \
    --mount-before-install=/MY-PATH:/wordpress
  • See that the WordPress file modification has been removed

Expected behavior

When WordPress is mounted before install in combination with --skip-wordpress-setup the mounted directory shouldn't be modified by Playgorund during boot.

Research

Commenting out these two lines resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions