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

feat(forge install): add @tag= @branch= @rev= specific refs #9214

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

grandizzy
Copy link
Collaborator

@grandizzy grandizzy commented Oct 28, 2024

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

@grandizzy grandizzy changed the title fix(forge install): add @tag= @branch= @commit= specific refs feat(forge install): add @tag= @branch= @commit= specific refs Oct 28, 2024
@grandizzy grandizzy marked this pull request as ready for review October 28, 2024 14:41
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();
Copy link
Member

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

Copy link
Collaborator Author

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

@zerosnacks
Copy link
Member

In favor of the proposed UX, few small notes

@grandizzy grandizzy changed the title feat(forge install): add @tag= @branch= @commit= specific refs feat(forge install): add @tag= @branch= @rev= specific refs Oct 28, 2024
@grandizzy grandizzy merged commit a428ba6 into foundry-rs:master Oct 28, 2024
21 checks passed
@grandizzy grandizzy deleted the issue-5996 branch October 28, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
2 participants