Skip to main content

Codelabs, revisited

Here is the codelabs repository: https://github.com/aspect-build/codelabs. This is a small playground where we can use Bazel to accomplish some basic tasks.

The repo has checkpoints in branches: 

  1. start is the default git branch. It has an existing monorepo layout but no Bazel yet.
  2. dependencies adds third-party dependency fetching: https://github.com/aspect-build/codelabs/compare/start..dependencies
  3. packages adds BUILD files: https://github.com/aspect-build/codelabs/compare/dependencies..packages
  4. final adds CI: https://github.com/aspect-build/codelabs/compare/packages..final

In the 101 course, we start from the final branch where Bazel is already configured.

In the 201 course, you'll learn how to configure it from scratch, so we will git reset --hard start.

Exercise: Get the code

Clone the repo to your machine so you can follow along.

  • If you'd rather, you can pair up with someone near you.
  • Or, just follow along with the instructor, and come back to the codelab later.