Skip to content

Commit

Permalink
Yarn Berry: run git lfs pull before running yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes authored and jurre committed Oct 31, 2022
1 parent 986408e commit 35ea619
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update \
build-essential \
dirmngr \
git \
git-lfs \
bzr \
mercurial \
gnupg2 \
Expand Down Expand Up @@ -315,3 +316,5 @@ RUN curl -sL $SHIM -o git-shim.tar.gz && mkdir -p ~/bin && tar -xvf git-shim.tar
ENV PATH="$HOME/bin:$PATH"
# Configure cargo to use git CLI so the above takes effect
RUN mkdir -p ~/.cargo && printf "[net]\ngit-fetch-with-cli = true\n" >> ~/.cargo/config.toml
# Disable automatic pulling of files stored with Git LFS
ENV GIT_LFS_SKIP_SMUDGE=1
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def sub_dependencies
def updated_yarn_lock(yarn_lock)
base_dir = dependency_files.first.directory
SharedHelpers.in_a_temporary_repo_directory(base_dir, repo_contents_path) do
# Pull any yarn data or plugins which may be stored with Git LFS
SharedHelpers.run_shell_command("git lfs pull --include .yarn")
write_temporary_dependency_files
lockfile_name = Pathname.new(yarn_lock.name).basename.to_s
path = Pathname.new(yarn_lock.name).dirname.to_s
Expand Down

0 comments on commit 35ea619

Please sign in to comment.