Home / Companies / Aspect Build / Blog / January 2024

January 2024 Summaries

2 posts from Aspect Build

Filter
Month: Year:
Post Summaries Back to Blog
Lockfiles, often updated when third-party dependencies change, can lead to merge conflicts during rebases if multiple contributors modify them simultaneously. This situation can be frustrating to resolve, especially in generated files, and not all package managers can automatically fix these conflicts. Git offers a solution through the use of .gitattributes and custom merge drivers. A specific strategy involves configuring Git to use a custom merge driver that defaults to the "ours" strategy, always selecting the local version of the file in case of conflicts. By adding a directive to the .gitattributes file to apply this custom merge driver to lockfiles, developers can avoid annoying merge conflicts and streamline the collaboration process.
Jan 22, 2024 718 words in the original blog post.
Bazel, an open-source build and test tool, is primarily used for fetching files from the internet, often employing the repository_ctx#download API. While Bazel's downloader is efficient due to its caching capabilities, certain scenarios, such as fetching Docker container images or Alpine packages, require the ability to set specific HTTP headers, which Bazel initially couldn't handle, leading to workarounds like reverting to curl. This limitation was addressed through community collaboration, resulting in an update that allows setting arbitrary HTTP headers, enhancing Bazel's functionality for tasks such as managing Docker manifests and handling Alpine packages. This new feature not only resolves previous issues but also opens up possibilities for more advanced download strategies, such as parallel downloading of large archives to improve efficiency.
Jan 03, 2024 1,162 words in the original blog post.