-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: catch if OpContext.Version is unset
If the evaluator is doing work without knowing its own version, that means that somewhere we forgot to set the version correctly. One such bug was SharedRuntime, which didn't use the Runtime constructor and so left Version as zero even if CUE_EXPERIMENT=evalv3 was set. Another was TestScheduler, which created an OpContext directly. This used the default evaluator version when it was the zero value, so restore that behavior now that we must specify the default by name. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I9e926061c1bf00e8851966edb3ee1add662b5884 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202745 Reviewed-by: Marcel van Lohuizen <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 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
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
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