Skip to content

Commit fa00106

Browse files
committed
[dg] Change sure config from dg.toml -> .dg.toml (#29107)
## Summary & Motivation Change the user dg config file from `dg.toml` to `.dg.toml` on Unix. This means that there will be no `dg.toml` file in the home directory that will be discovered as a containing workspace. ## How I Tested These Changes Manually, by checking that settings from `~/.dg.toml` were inherited and those from `~/dg.toml` were not. Used this approach because it's hard to use an automated test when reading from the home directory. ## Changelog The `dg` user config file on Unix is now looked for at `~/.dg.toml` instead of `~/dg.toml`.
1 parent a44bc93 commit fa00106

File tree

1 file changed

+1
-1
lines changed
  • python_modules/libraries/dagster-shared/dagster_shared/utils

1 file changed

+1
-1
lines changed

python_modules/libraries/dagster-shared/dagster_shared/utils/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def _get_default_dg_cli_file() -> Path:
1515
if is_windows():
1616
return Path.home() / "AppData" / "dg" / "dg.toml"
1717
else:
18-
return Path.home() / "dg.toml"
18+
return Path.home() / ".dg.toml"
1919

2020

2121
DEFAULT_DG_CLI_FILE = _get_default_dg_cli_file()

0 commit comments

Comments
 (0)