Skip to content

Commit

Permalink
Add missing python-fetch-individual-packages autogate check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Jan 17, 2025
1 parent ebf021c commit a04c0b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/workerd/server/workerd-api.c++
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ void WorkerdApi::compileModules(jsg::Lock& lockParam,
jsg::ModuleRegistry::Type::INTERNAL);

// Inject packages tar file
if (featureFlags.getPythonExternalPackages()) {
if (featureFlags.getPythonExternalPackages() ||
util::Autogate::isEnabled(util::AutogateKey::PYTHON_FETCH_INDIVIDUAL_PACKAGES)) {
modules->addBuiltinModule("pyodide-internal:packages_tar_reader", "export default { }"_kj,
workerd::jsg::ModuleRegistry::Type::INTERNAL, {});
} else {
Expand Down

0 comments on commit a04c0b6

Please # to comment.