# 使用 Homebrew, Nix 安装 wgo

查看 wgo 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:wgo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wgo
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#wgo
```

  证据: nixpkgs package indexes: pkgs/by-name/wg/wgo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:wgo
- **软件包管理器:** Homebrew
- **版本:** 0.6.4
- **来源摘要:** Watch arbitrary files and respond with arbitrary commands
- **主页:** <https://github.com/bokwoon95/wgo>
- **仓库:** <https://github.com/bokwoon95/wgo>
- **最后更新:** 2026-07-25T22:40:20+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wgo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.6.4
## 项目历史与用法

wgo, expanded in the README as watcher-go, is a Go-focused live-reload and general file-watcher command. Its upstream description is direct: watch arbitrary files and respond with arbitrary commands, including multiple commands in parallel.

### 项目历史

The GitHub repository was created in January 2023 and presents wgo as a response to file watchers that force commands into strings, require configuration files, or produce noisy output. The README emphasizes that the implementation is intentionally short and that core documentation starts with the quickstart.

Release metadata shows continued development through the 0.5 series in 2024-2025 and 0.6.x releases in 2025-2026. That history is young compared with older Unix tools, but the project has settled into a recognizable niche among Go developers who want a small live-reload wrapper.

### 采用历史

wgo's adoption signal is mainly GitHub- and Go-community based rather than institutional. It is packaged for Homebrew and Nix, but its source-backed identity comes from the repository, release stream, and README positioning rather than from long distribution history.

### 使用方式

The most common use is to prefix a command with wgo so that it reruns when files change, for example rebuilding C code, running Go code, or restarting a Go server. The special wgo run mode behaves like go run but reruns when Go files change, and flags allow users to include or exclude files and directories, debounce events, poll, chain commands, and run watchers in parallel.

Because it is not limited to Go commands, wgo also fits frontend-adjacent workflows in Go projects, such as rebuilding Sass or TypeScript alongside a Go server by chaining parallel wgo commands.

### 为什么软件包爱好者会关心

wgo is significant in the small-tool sense: it keeps live reload out of a project-specific config file and makes it a command-line behavior. For package users, that means one executable can sit beside go, make, gcc, sass, or tsc and provide a simple watch loop without adopting a larger task runner.

### 时间线

- 2023-01-12: The GitHub repository is created.
- 2024: GitHub release metadata records the 0.5.6 series.
- 2025: GitHub release metadata records multiple 0.5.x and 0.6.0 releases.
- 2026-05-06: GitHub release metadata records v0.6.4.

### Related projects

- Go's built-in go run is the command wgo run shadows for live reload.
- General file-watcher and task-runner tools such as entr, watchexec, reflex, air, and make-based watch loops occupy adjacent space.

### 来源

- <https://github.com/bokwoon95/wgo>
- <https://github.com/bokwoon95/wgo/blob/main/README.md>
- <https://github.com/bokwoon95/wgo/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - wgo: normalized package name match | nixpkgs package indexes: pkgs/by-name/wg/wgo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/wgo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wgo.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
