-
Notifications
You must be signed in to change notification settings - Fork 22
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
Using git branch/tag to pull dependencies #147
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
238e02f
Using git branch, tag to pull dependencies
mario-eth a6bd9c4
clippy
mario-eth 3ed6dc6
fixed bug on showing wrong error if config was incorrect
mario-eth 1e72f8d
fixed janitor tests
mario-eth 11b7e4f
refactor: git branches and tags (#162)
beeb f10014f
merged main
mario-eth c42de38
fixed clippy
mario-eth 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,11 @@ You can install a dependency from the Soldeer repository, a custom URL pointing | |
- **Example from Git:** | ||
soldeer install @openzeppelin-contracts~2.3.0 [email protected]:OpenZeppelin/openzeppelin-contracts.git | ||
- **Example from Git with a specified commit:** | ||
soldeer install @openzeppelin-contracts~2.3.0 [email protected]:OpenZeppelin/openzeppelin-contracts.git --rev 05f218fb6617932e56bf5388c3b389c3028a7b73", | ||
soldeer install @openzeppelin-contracts~2.3.0 [email protected]:OpenZeppelin/openzeppelin-contracts.git --rev 05f218fb6617932e56bf5388c3b389c3028a7b73 | ||
- **Example from Git with a specified tag:** | ||
soldeer install @openzeppelin-contracts~2.3.0 [email protected]:OpenZeppelin/openzeppelin-contracts.git --tag my-tag | ||
- **Example from Git with a specified branch:** | ||
soldeer install @openzeppelin-contracts~2.3.0 [email protected]:OpenZeppelin/openzeppelin-contracts.git --branch my-branch", | ||
after_help = "For more information, read the README.md" | ||
)] | ||
pub struct Install { | ||
|
@@ -70,6 +74,14 @@ pub struct Install { | |
#[arg(long)] | ||
pub rev: Option<String>, | ||
|
||
/// The tag of the dependency, if from Git | ||
#[arg(long)] | ||
pub tag: Option<String>, | ||
|
||
/// The branch of the dependency, if from Git | ||
#[arg(long)] | ||
pub branch: Option<String>, | ||
|
||
/// If set, this command will delete the existing remappings and re-create them | ||
#[arg(short = 'g', long, default_value_t = false)] | ||
pub regenerate_remappings: bool, | ||
|
Oops, something went wrong.
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.
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.
Identation is not the same as the rest of the items above