mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix(sandbox): pin the guest pnpm store via PNPM_CONFIG_STORE_DIR
pnpm 11 no longer reads npm_config_* env vars, so the guest image pins the store to a container-internal path through PNPM_CONFIG_STORE_DIR; unpinned, pnpm places the store on the bind-mounted project filesystem, polluting the repository. Adds a regression test and bumps the ocm-sandbox digest to the rebuilt image.
This commit is contained in:
1 parent
a1bf873584
commit
3ebfb06751
7 files changed
+21
-4
No files matched your search
@@ -224,6 +224,16 @@ describe('docker lifecycle scripts', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('sandbox guest image', () => {
|
||||
const sandboxDockerfilePath = join(repoRoot, 'Dockerfile.sandbox')
|
||||
const sandboxDockerfile = read(sandboxDockerfilePath)
|
||||
|
||||
it('pins the pnpm store to a container-internal path via PNPM_CONFIG_STORE_DIR', () => {
|
||||
expect(sandboxDockerfile).toContain('PNPM_CONFIG_STORE_DIR=/home/ocm-agent/.local/share/pnpm/store')
|
||||
expect(sandboxDockerfile, 'pnpm 11 ignores npm_config_* env vars').not.toContain('npm_config_store_dir=')
|
||||
})
|
||||
})
|
||||
|
||||
describe('sandbox compose overlay', () => {
|
||||
const overlayPath = join(repoRoot, 'docker-compose.sandbox.yml')
|
||||
const overlay = read(overlayPath)
|
||||
|
||||
Reference in new issue
Block a user