diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-02 12:25:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-02 12:25:39 +0200 |
commit | 8663ecf31c51e5bf7fef194bb15aed0b038fb8fc (patch) | |
tree | 791085fd29e27484420cbfaa5100f5042d58535e /bdep/sync.cli | |
parent | 93a673946ca1587126b3c108476234d93a7c5c7c (diff) |
Add ability to suppress auto-synchronization via BDEP_SYNC envvar
If BDEP_SYNC is set, auto-synchronization will only be performed if its
value is true or 1.
So to suppress, run:
$ BDEP_SYNC=0 b
Diffstat (limited to 'bdep/sync.cli')
-rw-r--r-- | bdep/sync.cli | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bdep/sync.cli b/bdep/sync.cli index fd5a375..bf0fbb5 100644 --- a/bdep/sync.cli +++ b/bdep/sync.cli @@ -224,8 +224,14 @@ namespace bdep "\h|ENVIRONMENT| - To avoid recursive re-synchronization, the \cb{sync} command maintains the - \cb{BDEP_SYNCED_CONFIGS} environment variable. It contains a + The \cb{BDEP_SYNC} environment variable can be used to suppress automatic + synchronization on build system invocation. If set, auto-synchronization + will only be performed if the variable's value is \cb{true} or \cb{1}. The + ability to suppress auto-synchronization can be useful when you don't have + usable \cb{bdep} and/or \cb{bpkg}. + + To avoid recursive re-synchronization, the \cb{sync} command also maintains + the \cb{BDEP_SYNCED_CONFIGS} environment variable. It contains a space-separated, \cb{\"}-quoted list of configuration paths that have been or are being synchronized by the current \cb{bdep} invocation chain. The \cb{sync} command examines this variable and silently ignores |