# 使用 Homebrew, apk, MacPorts, Nix, scoop 安装 go-jsonnet

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

## 安装

```sh
sudo av install brew:go-jsonnet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install go-jsonnet
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install go-jsonnet
```

  证据: MacPorts ports tree: devel/go-jsonnet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add go-jsonnet
```

  证据: Alpine Linux edge package indexes: go-jsonnet from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#go-jsonnet
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/go-jsonnet
```

  证据: Scoop official bucket manifest trees: bucket/go-jsonnet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:go-jsonnet
- **软件包管理器:** Homebrew
- **版本:** 0.22.0
- **来源摘要:** Go implementation of configuration language for defining JSON data
- **主页:** <https://jsonnet.org/>
- **仓库:** <https://github.com/google/go-jsonnet>
- **最后更新:** 2026-07-27T16:47:23+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jsonnet-deps (别名)
- jsonnet-lint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

go-jsonnet is the Go implementation of Jsonnet, a configuration language for producing JSON, YAML, and other structured data.

### 项目历史

Jsonnet began at Google in early 2014 as a 20 percent project and was launched on August 6 of that year. The go-jsonnet repository followed in 2016 as a pure-Go implementation; its README describes it as feature complete and production ready, with command-line tools and embeddable Go library support.

### 采用历史

Jsonnet gained adoption in configuration-heavy infrastructure work because it lets users compute, compose, and reuse structured data. The original C++ Jsonnet repository points users toward go-jsonnet as a newer implementation that can be much faster in some cases and is recommended in preference to the C++ version.

### 使用方式

Practitioners use the jsonnet command to evaluate .jsonnet files into JSON, YAML, or other outputs, and use jsonnetfmt, jsonnet-lint, and jsonnet-deps around repository review and build pipelines. Go programs can embed the VM directly to evaluate Jsonnet snippets or files inside larger tools.

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

For package users, go-jsonnet matters because it turns a configuration language into a small, portable Go toolchain with CLI binaries, pre-commit hooks, library APIs, and package-manager installs.

### 时间线

- 2014: Jsonnet began as a Google 20 percent project and launched on August 6.
- 2016: go-jsonnet public GitHub repository created.
- 2020: v0.17.0 release series available from the Go implementation.
- 2026: v0.22.0 release published with Go and Python packaging changes.

### Related projects

- google/jsonnet is the original C++ implementation. jsonnet.org hosts the language reference and standard-library documentation used by both implementations.

### 来源

- <https://github.com/google/go-jsonnet>
- <https://github.com/google/go-jsonnet/releases>
- <https://github.com/google/jsonnet>
- <https://jsonnet.org/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Nix - go-jsonnet: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/go-jsonnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - go-jsonnet - 0.21.0-r11: normalized package name match | Alpine Linux edge package indexes: go-jsonnet from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Implementation of Jsonnet in Go | https://jsonnet.org
- MacPorts - go-jsonnet: normalized package name match | MacPorts ports tree: devel/go-jsonnet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/go-jsonnet: normalized package name match | Scoop official bucket manifest trees: bucket/go-jsonnet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/go-jsonnet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/go-jsonnet.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
