rust-lang / rust-lang/cargo

Add the ability to always pull git dependency before build.

Open
#6,237 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-git C-enhancement S-needs-info
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

In my current project I have a dependence that points to a git repo.

[dependencies]
    myproject=  { git = "http://192.168.0.1/thing/thing.git", branch = "master" }

I was wondering if we can add a flag to always pull on build.
something similar to the following.

[dependencies]
    myproject=  { git = "http://192.168.0.1/thing/thing.git", branch = "master", pull_on_build = true }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from Cargo's handling of the TOML git dependency declaration shown in the issue and trace when dependencies are fetched during a build. Define the pull-on-build behavior and its completion criteria, then add coverage for a dependency using the proposed option.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.