-
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/envflag: support deprecated flags
We wish to remove support for disabling the modules experiment but we do not wish to break users who have set `CUE_EXPERIMENT=modules=1` to use the experiment. So change `envflag` to support marking a field as deprecated, meaning that any attempt to change it from its default value will result in an error. Also in passing remove some unnecessary type parameters. Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ifd552d9212cda1516343d338a6dcc30f1febe150 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200577 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
13 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