@@ -734,7 +734,7 @@ def get_sync_status(source: str = "modflow6") -> dict[str, bool]:
734734def get_registry (
735735 source : str = "modflow6" ,
736736 ref : str = "develop" ,
737- auto_sync : bool = True ,
737+ auto_sync : bool = False ,
738738 path : str | PathLike | None = None ,
739739) -> DfnRegistry :
740740 """
@@ -747,8 +747,9 @@ def get_registry(
747747 ref : str, optional
748748 Git ref (branch, tag, or commit hash). Default is "develop".
749749 auto_sync : bool, optional
750- If True and registry is not cached, automatically sync. Default is True.
751- Can be disabled via MODFLOW_DEVTOOLS_NO_AUTO_SYNC environment variable.
750+ If True and registry is not cached, automatically sync. Default is False
751+ (opt-in while experimental). Can be enabled via MODFLOW_DEVTOOLS_AUTO_SYNC
752+ environment variable (set to "1", "true", or "yes").
752753 Ignored when path is provided.
753754 path : str or PathLike, optional
754755 Path to a local directory containing DFN files. If provided, returns
@@ -775,9 +776,9 @@ def get_registry(
775776 if path is not None :
776777 return LocalDfnRegistry (path = Path (path ), source = source , ref = ref )
777778
778- # Check for auto-sync opt-out
779- if os .environ .get ("MODFLOW_DEVTOOLS_NO_AUTO_SYNC " , "" ).lower () in ("1" , "true" , "yes" ):
780- auto_sync = False
779+ # Check for auto-sync opt-in (experimental - off by default)
780+ if os .environ .get ("MODFLOW_DEVTOOLS_AUTO_SYNC " , "" ).lower () in ("1" , "true" , "yes" ):
781+ auto_sync = True
781782
782783 registry = RemoteDfnRegistry (source = source , ref = ref )
783784
0 commit comments