Commit c58da69
committed
Puppeteer INSTALLER_BINARY: bootstrap from install_root/npm/node_modules/.bin
Fresh provider copies built by Binary.load() via
get_provider_with_overrides start with _INSTALLER_BINARY=None, so
super().INSTALLER_BINARY() falls through to searching the env/brew
installer providers — none of which know about our hermetic
<install_root>/npm/node_modules/.bin layout. The install itself writes
puppeteer-browsers there, but subsequent load()s couldn't find it,
making _list_installed_browsers() silently return empty and
default_abspath_handler return None → Binary.load() raises
`BinaryLoadError: ERRORS={}`.
Mirror PlaywrightProvider's local_cli fallback: check the hermetic
npm bin first, then wrap the result in an EnvProvider.load() and
persist it via write_cached_binary so repeat lookups are cheap.
https://claude.ai/code/session_01Xt1YPCMzQrrFihDgVEYy4S1 parent ef93382 commit c58da69
1 file changed
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
129 | 193 | | |
130 | 194 | | |
131 | 195 | | |
| |||
0 commit comments