-
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.
cmd/cue: do not initialize cmd.Command twice in
cue cmd
This allows `cue cmd --cpuprofile` to work, avoids other issues such as initializing cueexperiment and cuedebug twice unnecessarily, and also adds an assertion so that future double-init bugs like this one don't go unnoticed for a while. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I97dd014cb2997f20122dd761822a32e483d9e951 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198496 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 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