Skip to the cargo

hk util forbid-submodules ​

  • How to hail it: hk util forbid-submodules [PATHS]…
  • Effect: read-only (looks, never touches)

Checks that the repository contains no git submodules: no other vessel riding inside this one.

Cargo it takes ​

  • [PATHS]… — The paths to check. Name none, and it checks the whole repository.

Flags to fly ​

  • -h --help — Print help, for when ye've lost yer bearings

Tales from the deck ​

Check the whole ship, or narrow the check to specific paths.

sh
hk util forbid-submodules
hk util forbid-submodules vendor

Further charts ​

Built-in linters and utilities: the standing crew · Troubleshooting: the ship's log · All the bosun's calls

MIT LicenseCopyright © 2026jdx.dev