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
allow configuring rust toolchain branch #1721
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Command::new("git") | ||
.args(["fetch", "origin", tag]) | ||
.current_dir(path) | ||
.run_verbose()?; |
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.
Not sure we need this?
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.
Needed because if the branch/tag is created after you clone, it won't resolve? Maybe I'm overlooking something, though
I think we should try to use a git ref rather than a branch name so that it's more generic. Some adjustments might need to be made to allow for this. |
This does work with tags and refs, just tested refs also to double check, that's why I had the naming as tags (seemed most generic). |
My understanding is that
So my thinking is to drop the |
You're right! I missed testing that case without a cloned branch. That was more of an artifact from trying to pull only what was needed. I'll run the cases in the background and make that change now, good catch |
Not sure if this is correct, just opening for visibility to help unblock someone needing to build the toolchain given the updated Rust version (1.70 too low).
Also changes the clone to minimize data fetched.Removed this for simplicity, it was causing weird edge case issuesIgnore this PR, unless you also want this.
Tested with: