-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve loads if they're different (#1137)
WORKSPACE files currently allow shadowing loads (see bazelbuild/bazel#17480), i.e. the following is valid: ```starlark load("//:one.bzl", "fn") fn() load("//:two.bzl", "fn") fn() ``` Currently buildozer removes the second load because the symbol was already loaded. This is incorrect - removing the second load changes the behaviour of this file. Instead, only delete a load of the last time it was loaded was from the same place.
- Loading branch information
1 parent
cf44629
commit a6ca93f
Showing
2 changed files
with
28 additions
and
2 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