Fix docker doctor fix pkgroot volume overwrite bug

This commit is contained in:
crazywhalecc
2025-09-04 12:03:13 +08:00
parent 38ec03fe30
commit a79564f685
5 changed files with 24 additions and 3 deletions

View File

@@ -40,6 +40,10 @@ class GlobalEnvManager
if (is_unix()) {
self::addPathIfNotExists(BUILD_BIN_PATH);
self::addPathIfNotExists(PKG_ROOT_PATH . '/bin');
// internally use `WORKING_DIR/pkgroot-private` to avoid volume mount issues in Docker
if (is_dir(WORKING_DIR . '/pkgroot-private/bin')) {
self::addPathIfNotExists(WORKING_DIR . '/pkgroot-private/bin');
}
self::putenv('PKG_CONFIG_PATH=' . BUILD_LIB_PATH . '/pkgconfig');
}