-
Notifications
You must be signed in to change notification settings - Fork 1.9k
remove hard-coded target directory
#3817
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
Open
dimalinux
wants to merge
18
commits into
solana-foundation:master
Choose a base branch
from
dimalinux:workspace-compat
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
24ecdea
initial working implementation
dimalinux b7a9499
removed hardcoded target directories from typescript
dimalinux 07f89e3
added --no-deps flag to 'cargo metadata' command
dimalinux 0f89f7a
special handling when no Cargo.toml exists
dimalinux 264598f
Merged in master changes added after PR was created
dimalinux 666d841
formatting was needed after merge
dimalinux 9c13cf9
removed lint warnings
dimalinux aa68954
Merge branch 'solana-foundation:master' into workspace-compat
dimalinux f7bf3cc
Merge remote-tracking branch 'origin/master' into workspace-compat
dimalinux d631230
removed once_cell dep by using LazyLock instead of Lazy
dimalinux 11b131f
Merge branch 'solana-foundation:master' into workspace-compat
dimalinux 4613284
Merge branch 'solana-foundation:master' into workspace-compat
dimalinux 4580225
Merge remote-tracking branch 'origin/master' into workspace-compat
dimalinux 37cdc19
implemented some PR feedback
dimalinux 45ed8fa
Merge branch 'solana-foundation:master' into workspace-compat
dimalinux 2feaf99
Merge remote-tracking branch 'origin/master' into workspace-compat
dimalinux 27d6739
'anchor init' no longer needs special handling in target_dir()
dimalinux 3bc3a0e
exit immediately if target_dir cannot be computed
dimalinux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second review, I think this is a confusing design with 4 distinct results
cargoexecution fails, we return an errorcargoexecution succeeds, but the status is not successanchor initcaseI would suggest
Path::from("target")directly as previously inanchor initas we know special handling is required, so calling this is pointlessThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamie-osec: I implemented both suggestions.
The
anchor inithandling to simplify the responsibilities oftarget_dir()is in this commit: dimalinux@27d6739Having
target_dir()exit the process in all failure scenarios is in this commit:dimalinux@3bc3a0e