Skip to content

Commit

Permalink
Implement REPO.bazel
Browse files Browse the repository at this point in the history
- REPO.bazel is a new file at the root of repos that can only contain a `repo()` call with a bunch of package default arguments (similar to `package()`)
- A new SkyFunction, RepoFileFunction, evaluates a REPO.bazel file and returns the `PackageArgs` object containing those arguments
- PackageFunction for packages in repo `@foo` now depends on RepoFileFunction for `@foo`

Fixes bazelbuild/bazel#18077

PiperOrigin-RevId: 551313372
  • Loading branch information
Googler authored and copybara-github committed Jul 26, 2023
1 parent ec99eef commit 45e1b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/bazel/src/main/protobuf/failure_details.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,7 @@ message PackageLoading {
BUILTINS_INJECTION_FAILURE = 29 [(metadata) = { exit_code: 1 }];
SYMLINK_CYCLE_OR_INFINITE_EXPANSION = 30 [(metadata) = { exit_code: 1 }];
OTHER_IO_EXCEPTION = 31 [(metadata) = { exit_code: 36 }];
BAD_REPO_FILE = 32 [(metadata) = { exit_code: 1 }];
}

Code code = 1;
Expand Down

0 comments on commit 45e1b5c

Please sign in to comment.