Skip to content

docs(cloud): record the Flutter sandbox fix in the setup script - #78

Merged
HussienALfajer merged 1 commit into
mainfrom
claude/shifa-setup-script-0qlf7o
Nov 17, 2026
Merged

HussienALfajer merged 1 commit into
mainfrom
claude/shifa-setup-script-0qlf7o

Conversation

@HussienALfajer

Copy link
Copy Markdown
Owner

Summary

  • The shifa cloud environment's setup script now runs chown -R root:root /opt/flutter and mkdir -p /root/.dart-tool after the Flutter step. Both run on every fresh container, including when the SDK is already installed.
  • docs/process/cloud-sessions.md §1–§3 now describe this: why the sandbox needs it, which paths Flutter writes (/opt/flutter/bin/cache, ~/.dart-tool, the repo's .dart_tool/) and which it only reads (~/.pub-cache, ~/.config/flutter).

Test plan

  • Current container, built before the script change: pnpm env:check shows all ok except docker (expected). pnpm verify fails at pub-get with Permission denied under /opt/flutter/bin/cache.
  • A sandboxed chown and mkdir ~/.dart-tool are refused, so the fix has to be in the setup script.
  • Simulated the fix with a root-owned SDK copy and a HOME containing an empty .dart-tool: flutter pub get --enforce-lockfile passed and pnpm verify was all green inside the sandbox.
  • Confirm in a fresh cloud session that pnpm verify passes without the simulation.
  • CI verify docs.

Generated by Claude Code

The cloud environment's setup script now chowns /opt/flutter to root and
creates /root/.dart-tool. Checked against a root-owned SDK copy: pub get
and pnpm verify pass inside the sandbox; Flutter writes only bin/cache,
~/.dart-tool and the repository's .dart_tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ay8hovRFxjL1SpBdrKhgTc
@HussienALfajer
HussienALfajer enabled auto-merge (squash) November 17, 2026 10:50
@HussienALfajer
HussienALfajer merged commit a8ab169 into main Nov 17, 2026
11 checks passed
@HussienALfajer
HussienALfajer deleted the claude/shifa-setup-script-0qlf7o branch November 17, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant