Compare commits

...

2 Commits

Author SHA1 Message Date
Paolo Tranquilli
bd1f548fbc Swift: use git-lfs devcontainer feature 2024-07-16 11:24:01 +02:00
Paolo Tranquilli
1dbe908024 Swift: tentative fix to install git-lfs in codespace without direct write access 2024-07-09 10:48:18 +02:00
3 changed files with 26 additions and 29 deletions

View File

@@ -1,25 +1,28 @@
{ {
"extensions": [ "extensions": [
"github.vscode-codeql", "github.vscode-codeql",
"hbenl.vscode-test-explorer", "hbenl.vscode-test-explorer",
"ms-vscode.test-adapter-converter", "ms-vscode.test-adapter-converter",
"slevesque.vscode-zipexplorer", "slevesque.vscode-zipexplorer",
"ms-vscode.cpptools" "ms-vscode.cpptools"
], ],
"settings": { "features": {
"files.watcherExclude": { "git-lfs": "latest"
"**/target/**": true },
}, "settings": {
"codeQL.runningQueries.memory": 2048 "files.watcherExclude": {
}, "**/target/**": true
"build": { },
"dockerfile": "Dockerfile", "codeQL.runningQueries.memory": 2048
}, },
"runArgs": [ "build": {
"--cap-add=SYS_PTRACE", "dockerfile": "Dockerfile",
"--security-opt", },
"seccomp=unconfined" "runArgs": [
], "--cap-add=SYS_PTRACE",
"remoteUser": "vscode", "--security-opt",
"onCreateCommand": ".devcontainer/swift/user.sh" "seccomp=unconfined"
],
"remoteUser": "vscode",
"onCreateCommand": ".devcontainer/swift/user.sh"
} }

View File

@@ -3,9 +3,6 @@ set -xe
BAZELISK_VERSION=v1.12.0 BAZELISK_VERSION=v1.12.0
BAZELISK_DOWNLOAD_SHA=6b0bcb2ea15bca16fffabe6fda75803440375354c085480fe361d2cbf32501db BAZELISK_DOWNLOAD_SHA=6b0bcb2ea15bca16fffabe6fda75803440375354c085480fe361d2cbf32501db
# install git lfs apt source
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
# install gh apt source # install gh apt source
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \ (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \ && sudo mkdir -p -m 755 /etc/apt/keyrings \
@@ -21,7 +18,6 @@ apt-get -y install --no-install-recommends \
python3-distutils \ python3-distutils \
python3-pip \ python3-pip \
bash-completion \ bash-completion \
git-lfs \
gh gh
# Install Bazel # Install Bazel

View File

@@ -1,7 +1,5 @@
set -xe set -xe
git lfs install
# add the workspace to the codeql search path # add the workspace to the codeql search path
mkdir -p /home/vscode/.config/codeql mkdir -p /home/vscode/.config/codeql
echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config