:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: enable pnpm global virtual store for worktrees (#57452)
Julian Bez145e20a44829
diff --git a/devenv/news.txt b/devenv/news.txtindex e769655e8c9d..2455a0b6a092 100644--- a/devenv/news.txt+++ b/devenv/news.txt@@ -3,3 +3,4 @@ Use 'hogli dev:explain' to see why each service is runninghogli now collects anonymous usage data - run 'hogli telemetry:status' for detailsPress 't' in phrocs to toggle services on or off — replaces hogli dev:setuphogli now supports detached mode: run hogli up -d, then hogli wait / hogli down+pnpm now uses a global virtual store — worktree installs are nearly instant (avoid concurrent pnpm install)diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex bef032e94ad0..a9690395e157 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,3 +1,5 @@+enableGlobalVirtualStore: true+packages:- '.'- common/esbuilderdiff --git a/tools/hogli-commands/hogli_commands/devenv/generator.py b/tools/hogli-commands/hogli_commands/devenv/generator.pyindex a0006e158f46..3ae6afb5f4d6 100644--- a/tools/hogli-commands/hogli_commands/devenv/generator.py+++ b/tools/hogli-commands/hogli_commands/devenv/generator.py@@ -232,10 +232,12 @@ printf '{gray} ─────────────────────echo ''if [ -f {news_path} ]; thenprintf ' {orange}{bold}News:{reset}\\n'- while IFS= read -r line || [ -n "$line" ]; do- [ -z "$line" ] && continue- printf ' {gray}·{reset} %s\\n' "$line"- done < {news_path}+ git blame --date=short {news_path} 2>/dev/null | \\+ awk '{{match($0,/[0-9]{{4}}-[0-9]{{2}}-[0-9]{{2}}/); d=substr($0,RSTART,RLENGTH); sub(/.*\\) /,""); if($0!="") print d"|"$0}}' | \\+ sort -r | \\+ while IFS='|' read -r date content; do+ printf ' {gray}%s{reset} %s\\n' "$date" "$content"+ doneecho ''fiprintf ' {bold}Commands:{reset}\\n'diff --git a/tools/hogli-commands/hogli_commands/tests/test_devenv.py b/tools/hogli-commands/hogli_commands/tests/test_devenv.pyindex 1d5ab0a5d9e1..1a0fd852682c 100644--- a/tools/hogli-commands/hogli_commands/tests/test_devenv.py+++ b/tools/hogli-commands/hogli_commands/tests/test_devenv.py@@ -547,12 +547,14 @@ class TestInfoProcess:assert f"{expected_count} active" in shelldef test_info_process_reads_news_at_runtime(self) -> None:- """Info process shell reads news.txt at runtime, not at generation time."""+ """Info process shell reads news.txt at runtime via git blame for dates."""procs = self._generate_with_intents(["feature_flags"])shell = procs["info"]["shell"]assert "devenv/news.txt" in shellassert "News:" in shell+ assert "git blame" in shell+ assert "sort -r" in shelldef test_info_process_includes_commands(self) -> None:"""Info process shell includes useful commands."""