Skip to content

Draft: Revert "Don't remove .git"

Andreas Gnau requested to merge agnau-revert-keep-dotgit into devel

This reverts commit 5922d022. Having .git in the tarballs and thus build-dirs causes more problems than it solves with the current architecture of OpenWrt the we live with.

  • hash of tarball is no longer reproducible
  • wrong hash of tarball leads to re-downloading on every build unless PKG_HASH:=skip is specified (unfeasible for all packages and breaking security).
  • tarball is bigger and takes longer to compress
  • doing any development in the build-dir is risky, because the build system can nuke that directory at any time, e.g. when files in package directory are changed or a dependency has changed. For this use case see: https://openwrt.org/docs/guide-developer/packages#working_on_local_application_source

Signed-off-by: Andreas Gnau andreas.gnau@iopsys.eu

Edited by Andreas Gnau

Merge request reports