-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cuecontext: add options to set version and debug flags
This changes Runtime.SetSettings back to SetVersion and adds AddDebugOptions. SetSettings has now served its purpose of identifying all call sites where these options need to be set. :) Note that we enable the API before it is fully working. But it probably works well enough for many applications. For open options search for the following across the repo: - '-- diff(/.*)?todo/p? --' in txtar files - todo_* fields in table-driven tests - TODO_(V3|Sharing|NoSharing) function calls in table-driven tests - TODO(evalv3) around matrix tests (like in trim_test.go) Removed use of "stderr 'str'" in txtar, as it does not support CUE_UPDATE=1. Closes #3060 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ib3970d867363711f461c8c303abfdb0402706fff Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194231 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
8 changed files
with
143 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
env CUE_EXPERIMENT=xxx | ||
! exec cue eval something | ||
stderr 'unknown CUE_EXPERIMENT xxx' | ||
cmp stderr errout | ||
-- errout -- | ||
cannot parse CUE_EXPERIMENT: unknown xxx |
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
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