diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 41549e2991c..f0fe87abaf0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,7 +14,7 @@ ] } }, - "postCreateCommand": "/bin/bash /var/init.sh", + "postCreateCommand": "sudo /bin/bash /var/init.sh", "waitFor": "postCreateCommand", // Will make extensions wait for restore (would have to manually restart omniSharp otherwise) "remoteUser": "vscode" } diff --git a/.devcontainer/first-run-notice.txt b/.devcontainer/first-run-notice.txt index d72a8d95916..e181088edaa 100644 --- a/.devcontainer/first-run-notice.txt +++ b/.devcontainer/first-run-notice.txt @@ -1,5 +1,6 @@ -A self-hosted runner has been built in _layout and is ready to be configured. +A self-hosted runner has been built in '_layout' and is ready to be configured. You can configure it for your repository or organisation by following these steps: https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-a-repository If you'd like to make changes to the runner, check out docs/contribute.md for the details. + diff --git a/.devcontainer/init.sh b/.devcontainer/init.sh index 917d27e28b6..a02752e4133 100644 --- a/.devcontainer/init.sh +++ b/.devcontainer/init.sh @@ -1,14 +1,14 @@ #!/bin/bash echo 'Creating symlink for embedded sdk...' - +whoami +pwd # pwd is the source root folder rm -rf _dotnetsdk mkdir _dotnetsdk ln -s /usr/share/dotnet/sdk/6.0.300 _dotnetsdk/6.0.300 - # Satisfy dev.sh SDK conditions -echo .6.0.300 > _dotnetsdk/.6.0.300 +echo .6.0.300 > _dotnetsdk/6.0.300/.6.0.300 ln -s -f /usr/bin/dotnet /usr/share/dotnet/sdk/6.0.300/dotnet rm -rf _layout