-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(forge install
): add @tag=
@branch=
@rev=
specific refs
#9214
Conversation
forge install
): add @tag=
@branch=
@commit=
specific refsforge install
): add @tag=
@branch=
@commit=
specific refs
crates/cli/src/opts/dependency.rs
Outdated
assert_eq!(dep.tag, Some("contracts-ccip/v1.2.1".to_string())); | ||
assert_eq!(dep.alias, None); | ||
|
||
let dep = Dependency::from_str("smartcontractkit/ccip@commit=80eb41b").unwrap(); |
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.
Soldeer / Rust uses rev
to refer to a commit, perhaps it makes sense to align here
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.
changed in e9d2967, please check
In favor of the proposed UX, few small notes |
forge install
): add @tag=
@branch=
@commit=
specific refsforge install
): add @tag=
@branch=
@rev=
specific refs
…oundry-rs#9214) * fix(`forge install`): add @tag= @Branch= @commit= for refs * Consistent @Rev=
Motivation
Closes #5996
Right now is hard to determine what
@
is used to delimiter (if org, ref, etc.)Introduce
@tag=
@branch=
@rev=
to specify ref type (and be able to handle/
in tag / branch name without changing current behavior)Solution