pkg.soopen package index

brew / 排名 8031

使用 Homebrew 安装 gocloc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gocloc

local Homebrew formula metadata

概览

软件包摘要

Little fast LoC counter

命令和别名

  • gocloc

历史

项目历史与用法

gocloc is a Go implementation of a source-code line counter, inspired by cloc and tokei. It reports file, blank, comment, and code counts by language, with CLI and container workflows.

项目历史

The public repository was created in April 2016. The README describes the project as a little fast cloc-style counter written in Go and explicitly cites tokei as an inspiration. GitHub release records show the v0.2.1 release in March 2019 and later 0.x releases through the 2020s.

采用历史

gocloc is packaged for Homebrew and is also documented for AUR installation in the README. Its packaging profile is typical of developer metrics tools: small binary, no service, useful in local repositories and CI jobs.

使用方式

Users run gocloc against a directory to print per-language totals, request supported languages with --show-lang, or run it through Docker. The README also documents Jenkins/SLOCCount-oriented output workflows, making it useful both at the terminal and in reporting pipelines.

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

The package is interesting as part of the lineage from cloc to newer compiled counters such as tokei and gocloc. For package managers, it is a low-friction developer-tool formula: install one executable and use it across repositories without managing a Perl or Rust toolchain at runtime.

时间线

  • 2016-04-01: Public GitHub repository created
  • 2019-03-02: v0.2.1 release published
  • 2021-02-19: v0.4.0 release published
  • 2023-05-06: v0.5.0 release published
  • 2025-03-24: v0.7.0 release published

Related projects

  • cloc is the predecessor-style tool named in the README.
  • tokei is explicitly cited by gocloc as an inspiration.
  • SLOCCount appears in the README's Jenkins integration workflow.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gocloccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本0.7.0
管理器更新时间2026-07-25
本地数据OK
上游当前
检测到的最新版本v0.7.0

https://github.com/hhatto/gocloc

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gocloc
版本0.7.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gocloc
主页https://github.com/hhatto/gocloc
仓库https://github.com/hhatto/gocloc
许可证MIT
源码归档https://github.com/hhatto/gocloc/archive/refs/tags/v0.7.0.tar.gz
最后更新2026-07-25T20:55:24-04:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegocloc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation