Skip to content

Commit 080a695

Browse files
authored
[Infra] Avoid downloading things from the internet for Git-LFS (#19)
1 parent 7c723d1 commit 080a695

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.lfsconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[lfs]
2+
url = https://github.com/canonical/yarf.git/info/lfs
3+
pushurl = ssh://[email protected]/canonical/yarf.git

docs/.readthedocs.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
apt_packages:
12+
- git-lfs
1213
- libxkbcommon-dev
1314
tools:
1415
python: "3.12"
@@ -25,20 +26,10 @@ build:
2526
then
2627
exit 183;
2728
fi
28-
# Support Git LFS: Download and uncompress the binary
29-
# https://docs.readthedocs.io/en/stable/build-customization.html#support-git-lfs-large-file-storage
30-
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.5.1/git-lfs-linux-amd64-v3.5.1.tar.gz
31-
- tar xvfz git-lfs-linux-amd64-v3.5.1.tar.gz
32-
# Modify LFS config paths to point where git-lfs binary was downloaded
33-
- git config filter.lfs.process "`pwd`/git-lfs-3.5.1/git-lfs filter-process"
34-
- git config filter.lfs.smudge "`pwd`/git-lfs-3.5.1/git-lfs smudge -- %f"
35-
- git config filter.lfs.clean "`pwd`/git-lfs-3.5.1/git-lfs clean -- %f"
36-
# Make LFS available in current repository
37-
- ./git-lfs-3.5.1/git-lfs install
38-
# Download content from remote
39-
- ./git-lfs-3.5.1/git-lfs fetch
40-
# Make local files to have the real content on them
41-
- ./git-lfs-3.5.1/git-lfs checkout
29+
post_system_dependencies:
30+
- git lfs install
31+
- git lfs fetch
32+
- git lfs checkout
4233
pre_build:
4334
- cd docs && make libdoc-convert
4435

0 commit comments

Comments
 (0)