Skip to content

Commit

Permalink
Deprecate --watchfs as startup option.
Browse files Browse the repository at this point in the history
Part of bazelbuild#13226.

PiperOrigin-RevId: 385953278
  • Loading branch information
meisterT authored and copybara-github committed Jul 21, 2021
1 parent 6d03a2e commit 03bd0eb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ DetailedExitCode parseOptions(List<String> args, ExtendedEventHandler eventHandl
// Migration of --watchfs to a command option.
// TODO(ulfjack): Get rid of the startup option and drop this code.
if (runtime.getStartupOptionsProvider().getOptions(BlazeServerStartupOptions.class).watchFS) {
eventHandler.handle(
Event.error(
"--watchfs as startup option is deprecated, replace it with the equivalent command "
+ "option. For example, instead of 'bazel --watchfs build //foo', run "
+ "'bazel build --watchfs //foo'."));
try {
optionsParser.parse("--watchfs");
} catch (OptionsParsingException e) {
Expand Down

0 comments on commit 03bd0eb

Please sign in to comment.