50/56
Sign inSign up free

779. Vendor a Library as a Submodule

medium 20 XP ~8 minHands-on lab

/home/student/repos/docs-site needs the team's shared library ui-kit, whose repository is at /srv/git/ui-kit.git. The team wants every checkout of docs-site to get exactly the library's v2.1.0 release, not whatever is newest.

Task

  • Add /srv/git/ui-kit.git to docs-site as a submodule at vendor/ui-kit.
  • The submodule must be checked out at the commit of the tag v2.1.0.
  • Commit this on main with a clean working tree.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.