-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain why vendored repositories are considered out-of-date #24857
Conversation
30ebaf3
to
cf07137
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, can you please take a look at the presubmit failures and update/add the test cases?
cf07137
to
9018577
Compare
@bazel-io fork 8.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but wait for @Wyverald to also take a look
Ping @Wyverald ! |
}; | ||
/** A sentinel "input" that's always out-of-date to signify parse failure. */ | ||
public static final RepoRecordedInput PARSE_FAILURE = | ||
new NeverUpToDateRepoRecordedInput("malformed marker file entry encountered"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got this error from internal check:
[ClassInitializationDeadlock] Possible class initialization deadlock: NeverUpToDateRepoRecordedInput is a subclass of the containing class RepoRecordedInput
new NeverUpToDateRepoRecordedInput("malformed marker file entry encountered");
^
(see http://go/bugpattern/ClassInitializationDeadlock)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed
byte[] areRepositoryAndMarkerFileConsistent(RepositoryFunction handler, Environment env) | ||
sealed interface RepoDirectoryState { | ||
record UpToDate(byte[] markerDigest) implements RepoDirectoryState {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ArrayRecordComponent] Record components should not be arrays.
record UpToDate(byte[] markerDigest) implements RepoDirectoryState {}
^
(see http://go/bugpattern/ArrayRecordComponent)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ignored this one, but made the interface private to the file.
ad54539
to
cfa0a28
Compare
cfa0a28
to
32ae6f8
Compare
Work towards #23243