Jeffery To f597f34f3a
build: export GIT_CEILING_DIRECTORIES for package builds
A package may run git as part of its build process, and if the package
source code is not from a git checkout, then git may traverse up the
directory tree to find buildroot's repository directory (.git).

For instance, Poetry Core, a Python build backend, will read the
contents of .gitignore for paths to exclude when creating a Python
package. If it finds buildroot's .gitignore file, then Poetry Core will
exclude all of the package's files[1].

This exports GIT_CEILING_DIRECTORIES for both package and host builds so
that git will not traverse beyond $(BUILD_DIR)/$(BUILD_DIR_HOST).

[1]: https://github.com/python-poetry/poetry/issues/5547

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-31 19:33:00 +02:00
..
2023-05-28 13:19:10 +02:00
2022-01-17 09:14:26 +01:00
2021-02-05 14:54:47 +01:00
2021-02-05 14:54:47 +01:00
2023-05-20 21:29:25 +02:00
2023-05-31 07:31:41 +02:00
2023-05-22 22:28:10 +02:00
2023-05-28 13:19:10 +02:00
2022-04-09 15:56:04 +02:00
2023-02-18 17:12:30 +01:00
2022-11-27 00:52:06 +01:00
2023-04-05 08:24:49 -03:00
2023-05-28 13:19:10 +02:00
2021-10-24 18:20:50 +02:00
2021-02-05 14:54:47 +01:00