From 8b3be30a839788972a56b44a1ffacf8f7bee4053 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 18 Aug 2024 22:42:02 +0100 Subject: [PATCH] Tap `bundle` and `services` in Codespaces - Yes, I wanted to do more Homebrew stuff from Codespaces on my iPad because I couldn't be bothered to get out of bed and walk downstairs to get my laptop. - For that I needed my `Homebrew/brew` branch and `brew services` tapped, with sufficient permissions for write access so I could push commits. - So I thought I'd do `bundle` as well as it seemed like another "would maybe use Codespaces for this" tap. --- .devcontainer/devcontainer.json | 14 ++++++++++++++ .devcontainer/on-create-command.sh | 3 +++ 2 files changed, 17 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3bd841317ef4b..c571125969a23 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,6 +9,20 @@ "onCreateCommand": ".devcontainer/on-create-command.sh", "customizations": { + "codespaces": { + "repositories": { + "Homebrew/homebrew-bundle": { + "permissions": { + "contents": "write" + }, + "Homebrew/homebrew-services": { + "permissions": { + "contents": "write" + } + } + } + } + }, "vscode": { // Installing all necessary extensions for vscode // Taken from: .vscode/extensions.json diff --git a/.devcontainer/on-create-command.sh b/.devcontainer/on-create-command.sh index e11cabfaed05e..7263b94fb05de 100755 --- a/.devcontainer/on-create-command.sh +++ b/.devcontainer/on-create-command.sh @@ -23,6 +23,9 @@ brew cleanup # actually tap homebrew/core, no longer done by default brew tap --force homebrew/core +# tap some other repos so codespaces can be used for developing multiple taps +brew tap homebrew/bundle +brew tap homebrew/services # install some useful development things sudo apt-get update