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

Cache submodules between different git checkouts #10279

Closed
wants to merge 1 commit into from

Commits on Feb 15, 2022

  1. Cache submodules between different checkouts of the same git dep

    This base64-encodes the URLs to avoid errors like the following:
    ```
    error: failed to get `dep1` as a dependency of package `foo v0.5.0 (D:/a/cargo/cargo/target/tmp/cit/t1035/foo)`
    
    Caused by:
      failed to load source for dependency `dep1`
    
    Caused by:
      Unable to update file:///D:/a/cargo/cargo/target/tmp/cit/t1035/dep1
    
    Caused by:
      failed to update submodule `src`
    
    Caused by:
      failed to make directory 'D:/a/cargo/cargo/target/tmp/cit/t1035/home/.cargo/git/checkouts/submodules/file:': The filename, directory name, or volume label syntax is incorrect.
      ; class=Os (2)
    ', tests\testsuite\git.rs:2515:10
    ```
    
    It uses bare checkouts instead of symbolic links to avoid permission errors on Windows.
    jyn514 committed Feb 15, 2022
    Configuration menu
    Copy the full SHA
    9a8816c View commit details
    Browse the repository at this point in the history