AI / Dependabot Interview questions
How do you configure Dependabot for a monorepo with multiple package ecosystems?
Each distinct package ecosystem/directory combination in a monorepo needs its own separate entry under
updates in dependabot.yml — Dependabot doesn't automatically discover and
handle multiple manifests within one repository without being told about each one explicitly.
updates: - package-ecosystem: "npm" directory: "/services/frontend" schedule: interval: "weekly" - package-ecosystem: "pip" directory: "/services/backend" schedule: interval: "weekly" - package-ecosystem: "docker" directory: "/services/backend" schedule: interval: "monthly"
Note that the same directory can appear multiple times across different package-ecosystem
entries (as shown with /services/backend above) if that directory contains manifests for more
than one ecosystem — a Python service with its own Dockerfile, for instance, needs both a
pip entry and a docker entry pointing at the same directory.
More Related questions...