Files
devvm/internal/msg/docs.go
T
w3cjandClaude Opus 5.5 eae6614cab feat(network): devvm network, a folder's VM's network policy on or off
devvm network prints the VM's network policy as ls shows it (on, off,
unenforced); devvm network on|off changes its state, applied when it next
starts (net_set_running/net_set_stopped, net_already when unchanged,
net_on_old_tokens on turning on). on needs the backend's egress proxy.

A running VM turned off stays on its proxy until it next starts
(net_off_next_start). Confined now means started with the proxy (Lima
reads the recorded network; the fake tracks Start's), so a VM turned on
while it ran direct is unenforced and its launch offers the confined
restart; net_unenforced* say it wasn't started confined.

net_flag_ignored, net_off_log and net_off_policy name devvm network.
Docs: network.md "Turning it on or off", commands.md, security.md,
contributing.md, CLI reference. Tests: TestNetwork,
TestNetworkRequiresEgressProxy, Lima's Confined after a direct start,
network.txtar (what it prints), e2e network (off, on while running,
off while confined).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-24 17:09:40 -06:00

135 lines
7.5 KiB
Go

package msg
// docs links messages to the docs page that says more: message ID to
// "page#anchor", a page in docs/content/docs and a heading on it. devvm
// prints the page's address on the line after the message's text.
// TestDocLinks checks every entry.
var docs = map[string]string{ //nolint:gosec // message IDs and pages, not credentials
"backend_lacks": "backends#missing-and-unreviewed-features",
"backend_unreviewed": "backends#missing-and-unreviewed-features",
"backend_unknown": "backends#choosing-a-backend",
"backend_unknown_default": "backends#choosing-a-backend",
"backend_unknown_vm": "backends#choosing-a-backend",
"lima_missing": "lima#requirements",
"lima_broken": "lima#requirements",
"lima_old": "lima#requirements",
"lima_host_unsupported": "lima#requirements",
"qemu_missing": "lima#requirements",
"lima_missing_fix": "lima#requirements",
"lima_broken_fix": "lima#requirements",
"lima_old_fix": "lima#requirements",
"qemu_missing_fix": "lima#requirements",
"lima_arch_unsupported": "lima#requirements",
"macos_old": "lima#requirements",
"no_kvm": "lima#requirements",
"kvm_access": "lima#requirements", "lima_global_config": "lima#a-lima-home-of-its-own",
"vm_has_networks": "lima#a-lima-home-of-its-own",
"lima_home_too_long": "lima#limits",
"mount_comma": "lima#limits",
"disk_shrink": "lima#limits",
"image_in_use": "lima#clones-and-overlays",
"qemu_refused": "lima#confinement",
"start_no_ssh": "lima#limits",
"no_ubuntu_image": "images#ubuntus-cloud-image",
"ubuntu_bad_signature": "images#ubuntus-cloud-image",
"ubuntu_unsigned": "images#ubuntus-cloud-image",
"unknown_layer": "images#layers",
"base_features": "customizing#choosing-features",
"base_features_none": "customizing#choosing-features",
"unknown_feature": "customizing#choosing-features",
"feature_shadowed": "customizing#your-own-features",
"script_failed": "images#build-logs-and-interrupts",
"rebuild_replaces": "images#rebuilding",
"vm_outdated": "images#outdated-vms",
"bad_path": "lima#limits",
"vm_name_no_room": "backends#vm-names",
"vm_other_folder": "commands#a-folder-made-again",
"vm_other_folder_rm": "commands#a-folder-made-again",
"vm_other_folder_adopt": "commands#a-folder-made-again",
"vm_unfinished": "commands#an-existing-vm",
"no_terminal_confirm": "commands#adding-to-a-vm",
"add_layer_failed": "commands#adding-to-a-vm",
"size_next_start": "commands#an-existing-vm",
"ports_next_start": "commands#an-existing-vm",
"export_failed": "coding-agents#history",
"git_replaced": "git-protection#on-each-launch",
"git_appeared": "git-protection#on-each-launch",
"git_embedded_new": "git-protection#on-each-launch",
"git_hooks_unlocked": "git-protection#on-each-launch",
"unsafe_folder": "security#only-the-project-folder",
"unsafe_folder_inside": "security#only-the-project-folder",
"cpus_not_number": "commands#size-and-ports",
"size_not_gib": "commands#size-and-ports",
"too_many_cpus": "commands#size-and-ports",
"too_much_memory": "commands#size-and-ports",
"port_invalid": "commands#size-and-ports",
"no_image_for": "images#which-image-a-new-vm-gets",
"net_direct_route": "network#the-self-check",
"net_unenforced_stop": "network#the-self-check",
"net_unenforced": "network#the-self-check",
"net_off_log": "network#turning-it-on-or-off",
"net_off_policy": "network#turning-it-on-or-off",
"net_flag_ignored": "network#turning-it-on-or-off",
"net_on_old_tokens": "network#turning-it-on-or-off",
"net_off_next_start": "network#turning-it-on-or-off",
"not_a_rule": "network#rules",
"proxy_start_failed": "network#the-proxy",
"proxy_port_taken": "network#the-proxy",
"no_secret": "network#secrets",
"codex_login_kept": "network#agents-logins-and-settings",
"opencode_login_kept": "network#agents-logins-and-settings",
"setid_files": "security#what-it-doesnt-protect",
"git_protect_needs_macos_new": "git-protection#linux-hosts",
"git_commondir": "git-protection#what-a-lock-cant-stop",
"git_worktree_stray": "git-protection#what-a-lock-cant-stop",
"git_not_locked": "git-protection#whats-locked",
"git_lock_raced": "git-protection#whats-locked",
"git_hooks_path": "git-protection#not-covered",
"git_include_inside": "git-protection#not-covered",
"git_hook_link_inside": "git-protection#not-covered",
"git_gitdir_outside": "git-protection#not-covered",
"ssh_remote_hint": "ssh#agent-forwarding",
"ssh_include_yourself": "ssh#ssh-access-by-name",
"clone_not_top": "clone#requirements",
"clone_no_commits": "clone#requirements",
"clone_detached": "clone#requirements",
"clone_needs_new_vm": "clone#requirements",
"remotes_taken": "clone#the-remote",
"fetch_until": "clone#the-remote",
"no_terminal_fetch": "clone#deleting-the-vm",
"saved_names_taken": "clone#deleting-the-vm",
"remote_kept": "clone#deleting-the-vm",
"no_terminal_delete": "clone#deleting-the-vm",
"tools_need_resolve": "images#versions",
"mise_checksum": "images#versions",
"tool_stepped_back": "images#versions",
"tool_no_download": "images#versions",
"tools_check_failed": "images#versions",
"newer_tools": "images#versions",
"tool_unbuilt": "images#building-tools",
"tool_bad_output": "images#building-tools",
"share_lock_held": "images#building-tools",
"tools_not_images": "images#building-tools",
"custom_layer_remove": "images#adding-and-removing-tools",
"agent_dir_comma": "lima#limits",
"agent_dirs_added": "coding-agents#mounts",
"agent_dirs_removed": "coding-agents#mounts",
"no_claude_token": "coding-agents#claude-code-login",
"claude_token_invalid": "coding-agents#claude-code-login",
"no_github_token": "network#secrets",
"login_copy_failed": "network#agents-logins-and-settings",
"config_redacted": "coding-agents#keys-in-settings-files",
"config_not_copied": "coding-agents#keys-in-settings-files",
"claude_mcp_secrets_copied": "coding-agents#mcp-servers",
"bad_from": "from#digests",
"from_unreachable": "from#digests",
"from_cached_unreachable": "from#digests",
"from_not_found": "from#images-only-docker-has",
"from_cached_not_found": "from#images-only-docker-has",
"docker_only": "from#images-only-docker-has",
"docker_image_changed": "from#images-only-docker-has",
"convert_failed": "from#supported-images",
"convert_bad_output": "from#the-image-is-untrusted",
"from_ignored": "from",
}