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

Support Go modules with LFS committed files #10052

Merged
merged 1 commit into from
Jul 15, 2024

Commits on Jul 15, 2024

  1. Enable LFS automatic pulling for the go_modules ecosystem

    Turning GIT_LFS_SKIP_SMUDGE on enables automatic pulling by default.
    This default is respected by the Go toolchain when downloading module
    sources directly from git servers (e.g. GitHub).
    
    Git LFS support is important when Go modules embed large files using
    go:embed. Direct download is more common for private repositories but
    it is also possible for public repositories (which are often downloaded
    from the module-proxy).
    
    The Go toolchain uses the local git installation to fetch archives of
    modules from Git servers directly. Some companies commits large files
    using Git LFS which happen to be part of their Go module source tree.
    Without git-lfs installed, the local git installation does not
    automatically resolve those files which causes "checksum mismatch"
    against the committed go.sum.
    danielorbach authored and sachin-sandhu committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    f1b49c0 View commit details
    Browse the repository at this point in the history