liyuqian/dsh-flutter-sandbox

Lets Flutter and Dart run inside the DSH workspace-write sandbox by granting the SDK, pub cache and tool-state directories the writes they need.

Out of the box a sandboxed command may write only the session workspace and /tmp, which is enough to break Flutter: the tool updates bin/cache on every run, so even flutter --version fails with a read-only file system error. This plugin widens the write set to exactly the directories Flutter touches for the SDK, package downloads, telemetry and analysis-server state, and no further. The choice to fail loudly on an unexpected argv layout is deliberate, so a harness upgrade surfaces as an error instead of a sandbox that quietly grants the wrong paths.

Development & Runtime ★ 0
View on GitHub ↗

Install

dsh plugin --profile tui add github:liyuqian/dsh-flutter-sandbox

Copied verbatim from the README's install line, which uses the tui profile; substitute your own profile name if it differs. There is no registry package for this name, so the documented GitHub spec is the install path. Flutter must already be installed and on PATH for the sandbox to locate FLUTTER_ROOT.

Compatibility

Replaces the stock sandbox provider with one that adds write access to the Flutter SDK directory, PUB_CACHE or ~/.pub-cache, ~/.dart-tool and ~/.dartServer, and ~/.flutter or the XDG config path, granting only directories that exist. It depends on the stock runner's argument layout, and a DSH release that changes it makes the plugin fail loudly with an unexpected sandbox argv layout error rather than silently allowing less or more than intended.

Details

Alternatives

idoall/dsh-update-status · LaoYueHanNi/dsh-git-worktree · jorinyang/dsh-doctor

More plugins in Development & Runtime

Browse more in Development & Runtime

Guides for Development & Runtime plugins