Skip to content
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

Favor stellar config dir. #1681

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Favor stellar config dir. #1681

wants to merge 3 commits into from

Conversation

fnando
Copy link
Member

@fnando fnando commented Oct 18, 2024

What

Favor ~/.config/stellar and pwd/.stellar config directories. This will create missing config dirs by using the stellar name, instead of soroban. There's also a check to let users know that the preferred name is now stellar.

Why

Given the push to the stellar-cli, we're should match config directories as well. Right now, we already have checks for local .stellar config directories, even though we generate a .soroban in case it doesn't exist.

Known limitations

N/A

);

if (locator.global && dirname == "soroban") || (!locator.global && dirname == ".soroban") {
printer.warnln(message);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we do it automatically? This config directory is created and managed by the cli

let soroban_dir = config_dir.join("soroban");
let stellar_dir = config_dir.join("stellar");

if soroban_dir.exists() {
Copy link
Contributor

Choose a reason for hiding this comment

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

If both exists, IMO we should either use stellar_dir first or return an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (Not Ready)
Development

Successfully merging this pull request may close these issues.

2 participants