go-tools holds the golang.org/x/tools module, comprising various tools
mostly for static analysis of Go programs, some of which are listed
below. Selected commands:
goimports formats a Go program like go fmt and additionally inserts
import statements for any packages required by the file after it
is edited.
callgraph prints the call graph of a Go program.
digraph is a utility for manipulating directed graphs in textual
notation.
stringer generates declarations (including a String method) for "enum"
types.
toolstash is a utility to simplify working with multiple versions of the
Go toolchain.
===> The following configuration options are available for go-tools-0.52.0_1,1:
RARE=off: install rarely used tools
===> Use 'make config' to modify these settings
devel/go-tools: update to 0.52.0
Selected upstream changes:
- cmd/compilebench: exit nonzero when a benchmark fails
- x/tools: delete obsolete code and dead test
- cmd/toolstash: check -linkobj files to support early export
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.50.0...v0.52.0
MFH: 2026Q4
devel/go-tools: update to 0.48.0
Changelog: https://github.com/golang/tools/compare/v0.47.0...v0.48.0
Selected upstream changes:
- go.mod: update golang.org/x dependencies
- internal/stdlib: update stdlib index for Go 1.27 Release Candidate 2
- internal/imports: use module cache index if it exists
devel/go-tools: update to 0.47.0
Selected upstream changes:
- x/tools{,gopls}: update x/telemetry
- internal/refactor/inline: fix panic when inlining type param name clash
- internal/stdlib: update stdlib index for Go 1.27 Release Candidate 1
Changelog: https://github.com/golang/tools/compare/v0.46.0...v0.47.0
devel/go-tools: update to 0.46.0
Selected upstream changes:
- cmd/goyacc: use math.MinInt16 as sentinel value for large grammars
- cmd/callgraph: add -{cpu,mem}profile flags for maintainers
- all: fix typos in comments and docs
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.45.0...v0.46.0
many: Unpin Go ports
Unpin Go ports that I missed the first time around because the version
number was not the first argument.
Fixes: 75d873b56a74 ("many: Unpin Go ports")
devel/go-tools: update to 0.37.0
godoc has been removed, use new port net/pkgsite as a replacement.
Selected upstream changes:
- internal/stdlib: update stdlib index for Go 1.25.0
- godoc,cmd/godoc: delete
- x/tools: assume go1.24 and simplify
- cmd/goimports: add counter (telemetry)
Changelog: https://github.com/golang/tools/compare/v0.36.0...v0.37.0
devel/go-tools: update to 0.33.0
The commands cookieauth, gitauth, netcrauth, and authtest are no longer
provided by upstream in this module and are slated to be removed with
the next release.
Selected upstream changes:
- cmd/auth: carve out module for deprecated command auth
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.32.0...v0.33.0
devel/go-tools: update to 0.32.0
Selected upstream changes:
- x/tools: use range over function for some API
- cmd/go-contrib-init: drop unneeded GOPATH checks in module mode
- all: make function comment match function name
- x/tools: apply modernize fixes
- x/tools: regenerate code after go upgrading
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.31.0...v0.32.0
devel/go-tools: update to 0.26.0
- drop the now removed command gorename
Selected upstream changes:
- all: fix spelling errors
- cmd/gorename: delete
- cmd/{callgraph,ssadump}, gopackages: make -tags flags work
- cmd/stringer: support types declared in test files
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.25.0...v0.26.0
devel/go-tools: update to 0.25.0
- wants to download Go 1.22 on build, so make it use that
Selected upstream changes:
- cmd/deadcode: fix nil panic in Edge.Site.Pos
- go.mod: update golang.org/x dependencies
- copyright: don't skip directories "." or ".." in checkCopyright
- cmd/stress: add -count flag, and print number of active commands in status
updates
Changelog: https://github.com/golang/tools/compare/v0.22.0...v0.25.0
devel/go-tools: update to 0.19.0
This will be the last version including the guru command.
Selected upstream changes:
- internal/versions: fix package to accept go1.21.0-bigcorp
- x/tools: don't parse CombinedOutput
- cmd/getgo: delete package
- cmd/deadcode: avoid ssautil.AllFunctions
- x/tools: update telemetry import (new Start API)
- x/tools: add explicit Unalias operations
- x/tools: drop go1.18 support
- cmd/callgraph: add 'posn' template helper
Changelog: https://github.com/golang/tools/compare/v0.18.0...v0.19.0
devel/go-tools: update to 0.16.1
- this makes the digraph command official
- also shuffle around RARE commands a bit; splitdwarf may be useful
to people doing macOS cross-development
Changelog: https://github.com/golang/tools/compare/v0.16.0...v0.16.1
devel/go-tools: update to 0.14.0
Selected upstream changes:
- go.mod: now requires Go 1.18 to build
- cmd/stringer: log more information in tests
- all: get tests passing with 1.18 and 1.19
- cmd/compilebench: fix assembler invocation
- cmd/compilebench: check asm support for -compiling-runtime
- go.mod: update golang.org/x dependencies
Changelog: https://github.com/golang/tools/compare/v0.13.0...v0.14.0
devel/go-tools: update to 0.11.1
Selected upstream changes:
- go/callgraph/rta: model reflective calls soundly
- cmd/digraph: consolidate -help message and package doc
- cmd/digraph: somepath: search breadth-first to find minimal path
- cmd/gonew: add new tool for starting a module by copying one
devel/go-tools: update to 0.10.0
Selected upstream changes:
- go.mod: update golang.org/x dependencies
- cmd/digraph: improve examples using go list, mod
devel/go-tools: update to 0.9.2
Selected upstream changes:
- cmd/bisect, internal/bisect: use more precise skip suffixes, written in hex
- go/gcexportdata: drop support for the ancient (pre go1.11) binary format
- cmd/{guru,callgraph}: stop using go/pointer
Changelog: https://github.com/golang/tools/compare/v0.9.1...v0.9.2
*/*: Update fuz@fuz.su to fuz@FreeBSD.org
www/writefreely had a stray duplicate MAINTAINER block
from an earlier botched commit. I did intentionally not
touch the entry in UPDATING.
Reviewed by: eduardo, flo
Differential Revision: https://reviews.freebsd.org/D38435
devel/go-tools: update to 0.4.0
Selected upstream changes:
- cmd/compilebench: make it work without installed .a's
- internal/typesinternal: update go/types error codes for 1.20
- playground/socket: eliminate an arbitrary timeout in TestLimiter
- go/ssa: build generic function bodies
- cmd/godoc: streamline test subprocesses
- go.mod: update golang.org/x dependencies
PR: 268220
devel/go-tools: Update to 0.2.0
Selected upstream changes:
- go/tools: add check for time formats with 2006-02-01
- go/callgraph/vta: do not assume that recovers cannot be deferred
- internal/imports: update stdlib index for 1.19
- godoc/redirect: delete golang.org-specific code
- x/tools: update go.mod following moving LSP code to x/tools/gopls
- go/ssa/ssautil: initialize info when there is syntax
- all: replace deprecated egrep with grep -E
- godoc: fix some comments
- cmd/ssadump: disable run mode with runtime package
- cmd/compilebench: use -a instead of -i to ensure dependencies are built
- go.mod: update golang.org/x dependencies
PR: 267314
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/go-tools: Update to 0.1.12
Selected upstream changes:
- go/packages: fix loading single file when outside of GOPATH, module
- cmd/stringer: use explicit NeedX values instead of deprecated LoadSyntax
- refactor/satisfy: don't crash on type parameters
- go/gcexportdata: fix Find for Go modules
- go/analysis: add suggested fix for unkeyed composite literals
- go/callgraph/vta: remove interprocedural flows for receiver objects
- go/callgraph/vta: do not include interface types during propagation
- go/callgraph/vta: use types.IsInterface instead of our own isInterface
- godoc: support go1.19 doc comment syntax
- all: update dependencies
PR: 265473
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
devel/go-tools: Update to 0.1.11
ChangeLog:
- make the toolstash command non-RARE as it is explicitly
mentioned in the README
Selected upstream changes:
- go/ssa: add generics support
- go/types/objectpath: break cycles through type parameters in find
- internal/imports: update stdlib index for 1.18
- go/analysis/passes/asmdecl: define register-ABI result registers for
PPC64
- x/tools/go/packages: add Embed support
(Only the first 15 lines of the commit message are shown above )
Number of commits found: 117 (showing only 100 on this page)