Skip to content

Commit f33d5ed

Browse files
Update .cursor/commands/npm-audit-fix.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent fc6a15d commit f33d5ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.cursor/commands/npm-audit-fix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Before executing the remediation steps, wrap your analysis in <project_analysis>
2828
Before proceeding, make sure the PHP runtime has access to the same project files as the CLI container. The PHP image in this stack does not mount the module code by default, so you must manually sync the files before attempting any audits or Drupal commands:
2929

3030
**Mandatory Container Sync (must be performed manually by the assistant)**
31-
- Identify the running PHP pod/container for the target environment. For Lagoon-based stacks use `kubectl get pods -l lagoon.sh/project=the project name,lagoon.sh/service=php` (or the equivalent `kubectl get pod` command provided by the platform). For local Docker Compose environments use `docker compose ps php` to confirm the container name.
32-
- Determine the CLI container name (typically `the project name` locally or the Lagoon CLI pod). This container has the authoritative Drupal codebase.
31+
- Identify the running PHP pod/container for the target environment. For Lagoon-based stacks use `kubectl get pods -l lagoon.sh/project=<project-name>,lagoon.sh/service=php` (or the equivalent `kubectl get pod` command provided by the platform). For local Docker Compose environments use `docker compose ps php` to confirm the container name.
32+
- Determine the CLI container name (typically `<project-name>` locally or the Lagoon CLI pod). This container has the authoritative Drupal codebase.
3333
- Copy the missing module directories from the CLI container to the PHP container so PHP can load them. Example (Docker): `docker cp $(docker compose ps -q cli):/app/web/modules/. $(docker compose ps -q php):/app/web/modules/` and repeat for any other required paths (e.g. `/app/vendor`, `/app/web/profiles`). Example (Lagoon/Kubernetes): `kubectl cp <cli-pod>:/app/web/modules <php-pod>:/app/web/modules -c php`.
3434
- Verify inside the PHP container that the expected module (e.g. `upgrade_status`) now exists under `/app/web/modules/contrib`. Do not restart or recreate containers; only manual copying is permitted.
3535

0 commit comments

Comments
 (0)