Skip to content

Move global Forge data to ~/.forge#2817

Open
ravshansbox wants to merge 3 commits intoantinomyhq:mainfrom
ravshansbox:issue-2451-hidden-global-forge-dir
Open

Move global Forge data to ~/.forge#2817
ravshansbox wants to merge 3 commits intoantinomyhq:mainfrom
ravshansbox:issue-2451-hidden-global-forge-dir

Conversation

@ravshansbox
Copy link
Copy Markdown
Contributor

Summary

  • switch the global Forge base path from ~/forge to ~/.forge
  • migrate the legacy ~/forge directory on startup when the new path does not exist
  • update user-facing references and comments to the hidden global directory

Closes #2451

Issue: #2451

Verification

  • cargo check -p forge_infra -p forge_config -p forge_domain -p forge_repo -p forge_main
  • cargo test -p forge_infra -p forge_config -p forge_domain -p forge_repo -p forge_main
  • cargo insta test --accept

ravshansbox and others added 2 commits April 3, 2026 08:24
Add startup migration from ~/forge and update global path references.

Closes antinomyhq#2451

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
@ravshansbox ravshansbox force-pushed the issue-2451-hidden-global-forge-dir branch from c003831 to ec3e68d Compare April 3, 2026 05:24
fn new_base_path() -> PathBuf {
dirs::home_dir()
.unwrap_or(PathBuf::from("."))
.join(".forge")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.join(".forge")
.join("forge")

Co-authored-by: Tushar Mathur <tusharmath@gmail.com>
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.

[Feature]: Switch to ~/.forge from ~/forge

2 participants