leba | 07924e8 | 2019-10-10 05:16:01 -0700 | [diff] [blame] | 1 | // Copyright 2019 The Bazel Authors. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | package com.google.devtools.build.lib.skyframe; |
| 15 | |
leba | 07924e8 | 2019-10-10 05:16:01 -0700 | [diff] [blame] | 16 | import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; |
| 17 | import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe; |
Googler | 6b965da | 2023-07-12 17:36:36 -0700 | [diff] [blame] | 18 | import com.google.devtools.build.skyframe.NotComparableSkyValue; |
leba | 07924e8 | 2019-10-10 05:16:01 -0700 | [diff] [blame] | 19 | |
| 20 | /** |
Googler | 1195e5b | 2024-05-10 04:44:34 -0700 | [diff] [blame] | 21 | * Represent a "promise" that the Artifacts under a NestedSet are evaluated by Skyframe. |
Googler | 6b965da | 2023-07-12 17:36:36 -0700 | [diff] [blame] | 22 | * |
| 23 | * <p>Implements {@link NotComparableSkyValue} to prohibit value-based change pruning. |
leba | 07924e8 | 2019-10-10 05:16:01 -0700 | [diff] [blame] | 24 | */ |
| 25 | @Immutable |
| 26 | @ThreadSafe |
Googler | 41568dc | 2023-09-25 08:43:09 -0700 | [diff] [blame] | 27 | public enum ArtifactNestedSetValue implements NotComparableSkyValue { |
| 28 | /** All artifacts in this nested set are present. */ |
| 29 | ALL_PRESENT, |
Googler | 6b965da | 2023-07-12 17:36:36 -0700 | [diff] [blame] | 30 | |
Googler | 41568dc | 2023-09-25 08:43:09 -0700 | [diff] [blame] | 31 | /** Some artifacts in this nested set are missing. */ |
| 32 | SOME_MISSING, |
Googler | 6b965da | 2023-07-12 17:36:36 -0700 | [diff] [blame] | 33 | } |