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

fix homedir expansion #1231

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Conversation

nonsense
Copy link
Member

No description provided.

@nonsense nonsense requested review from dirkmc and LexLuthr February 28, 2023 13:08
if err != nil {
return nil, fmt.Errorf("expanding homedir: %w", err)
}

node, err := clinode.Setup(cfgdir)
Copy link
Member Author

Choose a reason for hiding this comment

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

cfgdir is expanded within clinode.Setup, but it is also currently used in non-expanded form further down in this function at:

fc, err := rc.NewClient(node.Host, api, node.Wallet, addr, bstore, ds, cfgdir)


So this PR is expanding the cfgdir immediately when we get it from the flag.

@nonsense nonsense force-pushed the nonsense/fix-retrieve-cmd-homedir-expansion branch from 4ca5842 to c4e9f46 Compare February 28, 2023 13:13
@nonsense nonsense merged commit 779006c into main Feb 28, 2023
@jacobheun jacobheun deleted the nonsense/fix-retrieve-cmd-homedir-expansion branch February 28, 2023 14:01
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.

3 participants