-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Use `patch` from `@bazel_tools//tools/build_defs/repo:utils.bzl` (#1269)" This reverts commit 1dc3aaa. It seems like by using the native repository_ctx.path(file, strip) in bazel_tools, we would be applying the patches to the repository archive _before_ BUILD files generation. This is not desirable as patches on top of go_repository is often used to modify the BUILD files themselves. Another differences is that `patch` allow patch files without trailing blank/empty lines while repository_ctx.patch() would fail to recognize EOF in patch files without a trailing empty line: Expecting more chunk line at line xx Let's revert this change until we find a more appropriate solution to simplify go_repository structure. * go_repository: add doc regarding patch usages Highlight the reason why we had to revert a recent PR. Also applied minor formatting changes.
- Loading branch information
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters