Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .devcontainer/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ cargo install cargo-pgrx --version 0.16.1 --locked
echo "Initializing pgrx with PostgreSQL 17..."
cargo pgrx init --pg17 download

# ── Initialize private submodule (duroxide-pg-opt) ──────────────────
# In Codespaces, devcontainer.json grants the built-in GITHUB_TOKEN read
# access to microsoft/duroxide-pg-opt via customizations.codespaces.
# repositories. The Codespace credential helper handles authentication
# automatically — no PAT needed.
#
# Outside Codespaces (e.g. local Dev Container), the user must have
# their own credentials configured for the private repo.
echo "Initializing submodule (duroxide-pg-opt)..."
if git submodule update --init --recursive; then
echo "✅ Submodule initialized successfully"
else
echo "⚠️ Submodule initialization failed — skipping"
echo " If running outside Codespaces, ensure you have access to microsoft/duroxide-pg-opt"
fi

echo ""
echo "========================================="
echo "✅ Prebuild setup complete!"
Expand Down
Loading