Skip to content

[dg] Change sure config from dg.toml -> .dg.toml #29107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

smackesey
Copy link
Collaborator

@smackesey smackesey commented Apr 8, 2025

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.

Copy link
Collaborator Author

smackesey commented Apr 8, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@smackesey smackesey changed the base branch from sean/dg/package-object-renames to graphite-base/29107 April 8, 2025 16:50
@smackesey smackesey force-pushed the graphite-base/29107 branch from 4be0e00 to e88974e Compare April 8, 2025 16:50
@smackesey smackesey force-pushed the sean/dg/change-user-config-to-.dg.toml branch from f75f38f to 4a2b611 Compare April 8, 2025 16:50
@smackesey smackesey changed the base branch from graphite-base/29107 to master April 8, 2025 16:50
@smackesey smackesey requested a review from benpankow April 8, 2025 16:52
@smackesey smackesey merged commit a1a9802 into master Apr 8, 2025
1 check passed
@smackesey smackesey deleted the sean/dg/change-user-config-to-.dg.toml branch April 8, 2025 18:50
smackesey added a commit that referenced this pull request Apr 9, 2025
## 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants