Merge pull request #490 from opticon454/feature/docker-uv-uvx

fix(docker): keep CLIs installed from Settings across container updates
This commit is contained in:
Codeman maintainer
2026-09-28 16:20:54 +02:00
4 changed files with 21 additions and 0 deletions
+6
View File
@@ -713,6 +713,12 @@ describe('registry writes are serialized and never clobber a file the reader wou
}
expect(installEnv({ CODEMAN_PASSWORD: 'x', HOME: '/h' })).toEqual({ HOME: '/h' });
});
it('redirects npm installs to the persistent HOME inside the Compose container', () => {
expect(
installEnv({ CODEMAN_IN_CONTAINER: '1', HOME: '/home/codeman', NPM_CONFIG_PREFIX: '/opt/codeman-cli' })
).toEqual({ HOME: '/home/codeman', NPM_CONFIG_PREFIX: '/home/codeman/.local' });
});
});
/**