Skip to content

Commit 3ae4cb2

Browse files
authored
Merge pull request #16906 from github/redsun82/swift-codespace
Swift: add `git lfs` installation to codespace configuration
2 parents 1c0c51f + 5c7bbc0 commit 3ae4cb2

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.devcontainer/swift/root.sh

100644100755
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@ set -xe
33
BAZELISK_VERSION=v1.12.0
44
BAZELISK_DOWNLOAD_SHA=6b0bcb2ea15bca16fffabe6fda75803440375354c085480fe361d2cbf32501db
55

6+
# install git lfs apt source
7+
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
8+
9+
# install gh apt source
10+
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
11+
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
12+
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
13+
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
14+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
15+
616
apt-get update
717
export DEBIAN_FRONTEND=noninteractive
818
apt-get -y install --no-install-recommends \
919
zlib1g-dev \
1020
uuid-dev \
1121
python3-distutils \
1222
python3-pip \
13-
bash-completion
23+
bash-completion \
24+
git-lfs \
25+
gh
1426

1527
# Install Bazel
1628
curl -fSsL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-amd64

.devcontainer/swift/user.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set -xe
22

3+
git lfs install
4+
35
# add the workspace to the codeql search path
46
mkdir -p /home/vscode/.config/codeql
57
echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config

0 commit comments

Comments
 (0)