Skip to content

Tags: golang/tools

Tags

v0.40.0

Toggle v0.40.0's commit message
gopls/internal/golang: add support for variadic functions and constru…

…ctors in generated tests

Add IsVariadic flag to function metadata and expand variadic arguments with ...
in test templates.

Update constructor handling to propagate variadic information.

Fixes golang/go#76682

Change-Id: I3cab68e8729fe9092dedd2b1a40a1cbce79fb41b
GitHub-Last-Rev: acb706d
GitHub-Pull-Request: #609
Reviewed-on: https://go-review.googlesource.com/c/tools/+/727280
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
Auto-Submit: Hongxiang Jiang <hxjiang@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

gopls/v0.21.0

Toggle gopls/v0.21.0's commit message
gopls: update go.mod for v0.21.0-pre.2

This is an automated CL which updates the go.mod and go.sum.

For golang/go#76367

Change-Id: I895328b1ed919230ba614dc8c49b88707fc68d1f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/727381
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Madeline Kalil <mkalil@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

gopls/v0.21.0-pre.2

Toggle gopls/v0.21.0-pre.2's commit message
gopls: update go.mod for v0.21.0-pre.2

This is an automated CL which updates the go.mod and go.sum.

For golang/go#76367

Change-Id: I895328b1ed919230ba614dc8c49b88707fc68d1f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/727381
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Madeline Kalil <mkalil@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

gopls/v0.21.0-pre.1

Toggle gopls/v0.21.0-pre.1's commit message
gopls: update go.mod for v0.21.0-pre.1

This is an automated CL which updates the go.mod and go.sum.

For golang/go#76367

Change-Id: Ib58136a767cf43cf335b7ad2d5c36047d54dcc87
Reviewed-on: https://go-review.googlesource.com/c/tools/+/722081
TryBot-Bypass: Alan Donovan <adonovan@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Madeline Kalil <mkalil@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Commit-Queue: Gopher Robot <gobot@golang.org>
Commit-Queue: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>

v0.39.0

Toggle v0.39.0's commit message
internal/analysis/analyzerutil: fix FileUsesGoVersion

This CL fixes a logic error in FileUsesGoVersion's
bootstrap check (wrong operand order).

Also, it excludes _test.go files
from consideration of the bootstrap minimum version.

This unbreaks TestVetStdlib; see CL 718503.

Change-Id: I7101216567ecfb6ad01e420fa31be661aa302d57
Reviewed-on: https://go-review.googlesource.com/c/tools/+/720000
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>

v0.38.0

Toggle v0.38.0's commit message
go.mod: update golang.org/x dependencies

Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I6c44822bcfbb573d71a0bdb7113555658ca9830a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/710099
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>

v0.37.0

Toggle v0.37.0's commit message
go/analysis/internal/checker: fix panic due to nil Pass

This CL documents that that internal.Pass backdoor accessor
function (renamed to ActionPass for clarity) may return nil
if the action was never executed, and adds defensive checks.

Also, remove go1.22 transitional iterator.

Thanks to cuishang for reporting and investigating.

Fixes golang/go#75358

Change-Id: I59a8ce5bfb6e3a25ba129c35f321930d6786f611
Reviewed-on: https://go-review.googlesource.com/c/tools/+/702375
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>

godoc/v0.1.0-deprecated

Toggle godoc/v0.1.0-deprecated's commit message
godoc: remove replace directive

For golang/go#59056

Change-Id: I6a6a696487b880773fb4623e0f26f46554a80752
Reviewed-on: https://go-review.googlesource.com/c/tools/+/700895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>

cmd/godoc/v0.1.0-deprecated

Toggle cmd/godoc/v0.1.0-deprecated's commit message
cmd/godoc: remove replace directive

For golang/go#59056

Change-Id: I6a6a696480b01a4a2f97635dbfeae5b4e12859c4
Reviewed-on: https://go-review.googlesource.com/c/tools/+/701075
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>

v0.25.1

Toggle v0.25.1's commit message
[release-branch.0.25] gopls: fix the build with go1.25

Turn the compile-time error in AddExistingFiles into a runtime panic,
and avoid it by delegating to the FileSet.AddExistingFiles method on
go1.25.

Also disable broken tests. Fewer test were broken here than in
release-branch.0.24, because this branch include support for the new
export data.

for golang/go#74462

Change-Id: I430209b329ab88da676253e2bf5f66d1792078bd
Reviewed-on: https://go-review.googlesource.com/c/tools/+/697339
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>