-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CLI: Make all paths absolute #4107
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
base: master
Are you sure you want to change the base?
Conversation
|
@jamie-osec is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
ce388da to
710db70
Compare
|
@swaroop-osec What do you think about merging this PR as-is, as it fixes the motivating issue, and addressing the other issue in a followup? I have some ideas to eliminate these problems but they'll require some more extensive refactoring |
710db70 to
10abcc9
Compare
Sounds good. Please address the failed tests |
10abcc9 to
cc886e9
Compare
Co-authored-by: hasip-timurtas <hasip.timurtas@gmail.com>
cc886e9 to
b964497
Compare
Closes #2993
The root cause of the above issue is that we switch directories when running all commands, thus leaving relative paths incorrect.
This PR introduces a new trait (and corresponding derive macro)
AbsolutePathfor making paths in CLI arguments absolute. This is then used inanchor_cli::entryto prepare arguments for use.As an additional cleanup, all path arguments have been converted to
PathBuf(rather thanString).