This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch codespaces in repository https://gitbox.apache.org/repos/asf/superset.git
commit 084fd9ca030f1b4e02beffefe8199b56e0ed3a87 Author: Maxime Beauchemin <[email protected]> AuthorDate: Mon Jul 28 16:42:40 2025 -0700 tweak utilities --- .devcontainer/setup-dev.sh | 10 ++++++---- .devcontainer/start-superset.sh | 12 ++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.devcontainer/setup-dev.sh b/.devcontainer/setup-dev.sh index 00abbf2ad8..6b1aa214c3 100755 --- a/.devcontainer/setup-dev.sh +++ b/.devcontainer/setup-dev.sh @@ -1,8 +1,6 @@ #!/bin/bash # Setup script for Superset Codespaces development environment -set -e - echo "🔧 Setting up Superset development environment..." # The universal image has most tools, just need Superset-specific libs @@ -18,9 +16,13 @@ sudo apt-get install -y \ echo "📦 Installing uv..." curl -LsSf https://astral.sh/uv/install.sh | sh -# Install Claude Code CLI +# Add cargo/bin to PATH for uv +echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc +echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc + +# Install Claude Code CLI via npm echo "🤖 Installing Claude Code..." -curl -fsSL https://claudecode.ai/install.sh | sh +npm install -g @anthropic-ai/claude-code # Make the start script executable chmod +x .devcontainer/start-superset.sh diff --git a/.devcontainer/start-superset.sh b/.devcontainer/start-superset.sh index d0eddc5d91..7d70c84dbf 100755 --- a/.devcontainer/start-superset.sh +++ b/.devcontainer/start-superset.sh @@ -1,15 +1,19 @@ #!/bin/bash # Startup script for Superset in Codespaces -set -e - echo "🚀 Starting Superset in Codespaces..." PROJECT_NAME="${CODESPACE_NAME:-superset-dev}" echo "📦 Using project name: ${PROJECT_NAME}" echo "🌐 Frontend will be available at port 9001" -# Ensure we're in the right directory -cd /workspaces/superset-2 || cd /workspaces/superset || cd . +# Find the workspace directory (Codespaces clones as 'superset', not 'superset-2') +WORKSPACE_DIR=$(find /workspaces -maxdepth 1 -name "superset*" -type d | head -1) +if [ -n "$WORKSPACE_DIR" ]; then + cd "$WORKSPACE_DIR" + echo "📁 Working in: $WORKSPACE_DIR" +else + echo "📁 Using current directory: $(pwd)" +fi # Check if docker is running if ! docker info > /dev/null 2>&1; then
