macOS
brew install magelocal Homebrew formula metadata
sudo port install mageMacPorts ports tree · devel/mage/Portfile · 来源: api.github.com
安装
brew install magelocal Homebrew formula metadata
sudo port install mageMacPorts ports tree · devel/mage/Portfile · 来源: api.github.com
sudo apk add mageAlpine Linux edge package indexes · mage · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#magenixpkgs package indexes · pkgs/by-name/ma/mage/package.nix · 来源: api.github.com
sudo pacman -S mageArch Linux sync databases · mage · 来源: geo.mirror.pkgbuild.com
sudo zypper install mageopenSUSE Tumbleweed package metadata · mage · 来源: download.opensuse.org
scoop install main/mageScoop official bucket manifest trees · bucket/mage.json · 来源: api.github.com
winget install --id Magefile.mage -eWindows Package Manager source index · Magefile.mage · 来源: cdn.winget.microsoft.com
概览
Make/rake-like build tool using Go
历史
Mage is a Go-native make/rake-style task runner. Its package identity is simple: a small `mage` CLI finds Go functions in mage files and exposes them as build targets, giving Go projects a build script that is compiled and type-checked as ordinary Go.
The public GitHub repository was created in September 2017, and the project reached its v1 release in October 2017. The official site describes the core idea as Makefile-like runnable targets written as plain Go functions, with no runtime dependency beyond Go itself.
Mage evolved around Go workflow conventions. Release notes and documentation added support for Go modules, versioned `go install` use, optional and variadic arguments, multiline help text, tab completion, and the `magefiles/` directory convention for keeping build files separate from normal application code.
Mage became a common package-manager install for developers who wanted a cross-platform replacement for Make in Go-heavy repositories. The official installation page documents Homebrew, MacPorts, Scoop, GitHub releases, `go install`, and asdf, while the Homebrew input data also lists Linux distribution, Nix, pacman, winget, and zypper package names.
The repository has several thousand GitHub stars and hundreds of forks, which is a useful adoption signal for a developer tool whose main audience is maintainers wiring project automation into local builds and CI.
A typical project adds a mage file with the `mage` build tag and exported functions. Running `mage -l` lists targets, `mage <target>` executes one, and comments on functions become command help.
Mage is also used in CI and in vendored or zero-install workflows. The zero-install documentation shows how a project can run Mage through `go run` so contributors do not need a preinstalled `mage` binary.
Mage is package-nerd interesting because it trades Make's whitespace-sensitive shell DSL for Go code while still looking like a tiny command-line build tool to package managers. It sits in the same cultural slot as Make, Rake, Just, and Task, but its dependency story is unusually boring for Go users: install one CLI, write Go.
Its packaging footprint is broad for a niche build tool, and the docs explicitly cover binary releases and multiple package managers, which makes it easy to pin in CI images or bootstrap on contributor machines.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
magefile.goMagefile.gomagefile.goMagefile.go可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mage | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/magefile/mage
安装元数据
| 软件包键 | brew:mage |
|---|---|
| 版本 | 1.17.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mage |
| 主页 | https://magefile.org |
| 仓库 | https://github.com/magefile/mage |
| 上游文档 | https://magefile.org/ |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/magefile/mage.git |
| 最后更新 | 2026-04-23T03:53:13Z |
| Pulse | updated |
| 依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mage |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
golang-github-magefile-mage-dev 1.15.0+ds-2
Make/rake-like dev tool using Go (library)
https://github.com/magefile/mage
sudo apt install golang-github-magefile-mage-devmage 1.15.0+ds-2+b3
Make/rake-like dev tool using Go (program)
https://github.com/magefile/mage
sudo apt install magemage
nix profile install nixpkgs#magemage 1.13.0-r23
make-like build tool using Go
sudo apk add magemage 1.15.0-2
A Make/rake-like build tool using Go
sudo pacman -S magemage 1.15.0-2.5
A make-like build tool using Go
https://github.com/magefile/mage
sudo zypper install magemage
sudo port install magemain/mage
scoop install main/mageMagefile.mage
winget install --id Magefile.mage -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.