Skip to content

Conversation

dziezdom
Copy link
Contributor

Description

  1. What is this PR about (link the issue and add a short description)
    • This PR fixes an issue where pnpm was not being correctly installed or configured within the Devcontainer environment when using postinstall.sh.
    • This was causing errors during container startup and when running pnpm commands inside the Devcontainer.
    • The fix ensures pnpm is properly set up in postinstall.sh, resolving the Devcontainer setup issue.

Steps for reproduction

  1. Start the Webstudio Devcontainer.
  2. Expect the Devcontainer to start successfully without pnpm related errors.
  3. Verify that pnpm commands can be executed correctly within the Devcontainer terminal (e.g., pnpm --version).

Code Review

  • hi @kof, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 0000)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env file

@istarkov
Copy link
Member

Thank you!!!!

@istarkov istarkov merged commit f5b7efe into webstudio-is:main Feb 23, 2025
9 of 11 checks passed
istarkov pushed a commit that referenced this pull request Feb 23, 2025
## Description

1. What is this PR about (link the issue and add a short description)
* This PR fixes an issue where `pnpm` was not being correctly installed
or configured within the Devcontainer environment when using
`postinstall.sh`.
* This was causing errors during container startup and when running
`pnpm` commands inside the Devcontainer.
* The fix ensures `pnpm` is properly set up in `postinstall.sh`,
resolving the Devcontainer setup issue.

## Steps for reproduction

1. Start the Webstudio Devcontainer.
2. Expect the Devcontainer to start successfully without `pnpm` related
errors.
3. Verify that `pnpm` commands can be executed correctly within the
Devcontainer terminal (e.g., `pnpm --version`).

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants