We’ve got some terraform modules (1 public and a load private).
For the public one, we’d like to slim down the exact content downloaded to be just the relevant code for the module.
Currently, all the tests, and pipeline related code is also downloaded.
With other git based repos, the use of .gitattributes
is used. For PHP, there’s a lean-package-validator app that helps remove standard things that have no bearing on usage of the module.
Whilst this is a minor amount being reduced … in this module … it also means small amounts of bandwidth being saved repeatedly, as well as non used content not being stored in a consumer’s setup.