Skip to content

Commit 8008eda

Browse files
committed
Update sandbox setting
1 parent f983193 commit 8008eda

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

docker/sandbox.sb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
(allow system-socket)
8282
(allow network-outbound
8383
(path "/private/var/run/mDNSResponder")
84-
(remote tcp4 "*:80")
8584
(remote tcp4 "*:443")
8685
(remote tcp4 "*:3128")
8786
)

docker/test-macos.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ NODE_VERSION="$(cat .nvmrc)"
1919
NODE_NAME="node-v$NODE_VERSION-darwin-x64"
2020
NODE_ARCHIVE="$NODE_NAME.tar.gz"
2121
ARTIFACTS="$PWD/.vscode-test"
22-
VSCODE_SETTINGS="$ARTIFACTS/user-data/User/settings.json"
22+
USER_DATA="$PWD/ud"
23+
VSCODE_SETTINGS="$USER_DATA/User/settings.json"
2324
LSP_SETTINGS="$HOME/.sourcekit-lsp/config.json"
2425

2526
export TMPDIR="$ARTIFACTS/tmp"
@@ -30,6 +31,7 @@ function cleanup {
3031
rm "$NODE_ARCHIVE"
3132
rm -rf "$ARTIFACTS"
3233
rm -rf "$LSP_SETTINGS"
34+
rm -rf "$USER_DATA"
3335
}
3436
trap "cleanup" EXIT
3537

@@ -50,11 +52,7 @@ PATH="$ARTIFACTS/$NODE_NAME/bin:$PATH"
5052
mkdir -p "$(dirname "$VSCODE_SETTINGS")"
5153
cat <<EOT > "$VSCODE_SETTINGS"
5254
{
53-
"swift.buildArguments": [
54-
"--disable-sandbox",
55-
"-Xswiftc",
56-
"-disable-sandbox"
57-
]
55+
"swift.disableSandbox": true
5856
}
5957
EOT
6058

0 commit comments

Comments
 (0)