Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump golang.org/x/tools from 0.14.0 to 0.15.0 in /internal/tools #3913

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 13, 2023

Bumps golang.org/x/tools from 0.14.0 to 0.15.0.

Release notes

Sourced from golang.org/x/tools's releases.

gopls/v0.14.1

This release contains just two changes:

  • A workaround for a regression affecting some users of GOPACKAGESDRIVER: golang/go#63751, for example those using gopls with an older version of Bazel. When the go/packages driver is missing compiler or architecture information, gopls now assumes a default value rather than failing to load package information.
  • A fix for a minor bug in the new "remove unused parameter" refactoring: golang/go#63755. Notably, this bug was discovered via an automated report from someone who had opted in to Go telemetry.
Commits
  • 729e159 go.mod: update golang.org/x dependencies
  • 38ed81a gopls/internal/regtest/marker: porting extract tests
  • bbf8380 gopls/internal/regtest/marker: use golden diffs for suggested fixes
  • 51df92b go/ssa: two minor cleanups
  • e7fb31a internal/cmd/deadcode: rename -format to -f
  • c538b4e internal/cmd/deadcode: add -whylive=function flag
  • b753e58 internal/lsp/helper: fix misspelled "Code generated" comment
  • 2638d66 internal/cmd/deadcode: omit package/func keywords in default output
  • 118c362 gopls/internal/lsp/source: fix signatureHelp with pointer receivers
  • 4124316 gopls/internal/lsp/cache: remove baseCtx from the View
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested review from a team as code owners November 13, 2023 00:48
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 13, 2023
@rmfitzpatrick
Copy link
Contributor

rmfitzpatrick commented Nov 13, 2023

mvdan.cc/unparam/check via https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/unparam.go appears incompatible w/ this update.

edit: may be transient or resulting from undetermined behavior since it's cleared on rebased attempt.

@dependabot dependabot bot force-pushed the dependabot/go_modules/internal/tools/golang.org/x/tools-0.15.0 branch from 2fb4432 to bf90e7c Compare November 13, 2023 19:13
@crobert-1
Copy link
Contributor

Running tests again to confirm no real issue

@crobert-1
Copy link
Contributor

@dependabot recreate

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/internal/tools/golang.org/x/tools-0.15.0 branch from bf90e7c to b748797 Compare November 13, 2023 23:26
@crobert-1
Copy link
Contributor

Lint hit a panic in internal/signalfx-agent twice in a row before recreate. I can only assume this was caused by this PR, but not sure how it's related yet.

2023-11-13T23:00:20.6213167Z running make lint in ./internal/signalfx-agent
2023-11-13T23:00:20.6225692Z make[1]: Entering directory '/home/runner/work/splunk-otel-collector/splunk-otel-collector/internal/signalfx-agent'
2023-11-13T23:00:20.6246229Z Linting LINUX code
2023-11-13T23:00:20.6247261Z CGO_ENABLED=0 GOGC=40 golangci-lint run --allow-parallel-runners --timeout 10m -j4
2023-11-13T23:02:16.0061250Z level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:02:16.0064508Z level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
2023-11-13T23:02:16.0067376Z level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:02:16.0070158Z level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
2023-11-13T23:02:16.0072936Z level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
2023-11-13T23:02:52.0795942Z Linting WINDOWS code
2023-11-13T23:02:52.0797163Z GOOS=windows CGO_ENABLED=0 GOGC=40 golangci-lint run --allow-parallel-runners --timeout 10m -j4
2023-11-13T23:05:26.9571970Z level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
2023-11-13T23:05:26.9575259Z level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
2023-11-13T23:05:26.9577867Z level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:05:26.9636293Z level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
2023-11-13T23:05:26.9639096Z level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:06:01.5543905Z level=error msg="[runner] Panic: interfacer: package \"forwarder\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference: goroutine 24168 [running]:\nruntime/debug.Stack()\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/debug/stack.go:24 +0x65\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func1()\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:109 +0x285\npanic({0x1696ba0, 0x223a480})\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/panic.go:884 +0x213\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions.func1(0xc0272c8340)\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:62 +0x117\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions.func2({0x1a7b030, 0xc00cfda2a0})\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:79 +0x92\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions(0xc03b826b60)\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:132 +0x2c8\nmvdan.cc/interfacer/check.(*Checker).Check(0xc001e42480)\n\t/home/runner/go/pkg/mod/mvdan.cc/interfacer@v0.0.0-20180901003855-c20040233aed/check/check.go:143 +0x2d6\ngithub.com/golangci/golangci-lint/pkg/golinters.runInterfacer(0xc01970e340)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/interfacer.go:63 +0x3f5\ngithub.com/golangci/golangci-lint/pkg/golinters.NewInterfacer.func1(0x167fb80?)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/interfacer.go:26 +0x2f\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyze(0xc00360d8e0)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:195 +0xa25\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func2()\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:113 +0x1d\ngithub.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc001df76d0, {0x182643c, 0xa}, 0xc003a5c748)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/timeutils/stopwatch.go:111 +0x4a\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe(0xc001d9a960?)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:112 +0x85\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze.func2(0xc00360d8e0)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_loadingpackage.go:80 +0xb4\ncreated by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_loadingpackage.go:75 +0x208\n"
2023-11-13T23:06:01.5568846Z level=warning msg="[runner] Can't run linter goanalysis_metalinter: goanalysis_metalinter: interfacer: package \"forwarder\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference"
2023-11-13T23:06:01.5572693Z level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: goanalysis_metalinter: interfacer: package \"forwarder\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference\n\n"
2023-11-13T23:06:01.5966173Z make[1]: *** [Makefile:29: lint] Error 3
2023-11-13T23:06:01.5967358Z make[1]: Leaving directory '/home/runner/work/splunk-otel-collector/splunk-otel-collector/internal/signalfx-agent'
2023-11-13T23:06:01.5969033Z make: *** [Makefile:64: for-all] Error 2

Raw logs

@crobert-1
Copy link
Contributor

Yep, still hitting it intermittently (sometimes it passes):

2023-11-13T23:57:00.9973976Z make[1]: Entering directory '/home/runner/work/splunk-otel-collector/splunk-otel-collector/internal/signalfx-agent'
2023-11-13T23:57:00.9994830Z Linting LINUX code
2023-11-13T23:57:00.9995842Z CGO_ENABLED=0 GOGC=40 golangci-lint run --allow-parallel-runners --timeout 10m -j4
2023-11-13T23:58:54.9001727Z level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:58:54.9004443Z level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
2023-11-13T23:58:54.9007407Z level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
2023-11-13T23:58:54.9010564Z level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
2023-11-13T23:58:54.9013151Z level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
2023-11-13T23:59:29.7857397Z level=error msg="[runner] Panic: interfacer: package \"memcached\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference: goroutine 28898 [running]:\nruntime/debug.Stack()\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/debug/stack.go:24 +0x65\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func1()\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:109 +0x285\npanic({0x1696ba0, 0x223a480})\n\t/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/panic.go:884 +0x213\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions.func1(0xc034fa2d00)\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:62 +0x117\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions.func2({0x1a7b030, 0xc0105e0630})\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:79 +0x92\ngolang.org/x/tools/go/ssa/ssautil.AllFunctions(0xc030d4a5b0)\n\t/home/runner/go/pkg/mod/golang.org/x/tools@v0.15.0/go/ssa/ssautil/visit.go:132 +0x2c8\nmvdan.cc/interfacer/check.(*Checker).Check(0xc034fc6420)\n\t/home/runner/go/pkg/mod/mvdan.cc/interfacer@v0.0.0-20180901003855-c20040233aed/check/check.go:143 +0x2d6\ngithub.com/golangci/golangci-lint/pkg/golinters.runInterfacer(0xc03526bee0)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/interfacer.go:63 +0x3f5\ngithub.com/golangci/golangci-lint/pkg/golinters.NewInterfacer.func1(0x167fb80?)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/interfacer.go:26 +0x2f\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyze(0xc003360700)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:195 +0xa25\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func2()\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:113 +0x1d\ngithub.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc001dbf6d0, {0x182643c, 0xa}, 0xc00356d748)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/timeutils/stopwatch.go:111 +0x4a\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe(0xc0003d6e40?)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_action.go:112 +0x85\ngithub.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze.func2(0xc003360700)\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_loadingpackage.go:80 +0xb4\ncreated by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze\n\t/home/runner/go/pkg/mod/github.com/golangci/golangci-lint@v1.55.2/pkg/golinters/goanalysis/runner_loadingpackage.go:75 +0x208\n"
2023-11-13T23:59:29.7873097Z level=warning msg="[runner] Can't run linter goanalysis_metalinter: goanalysis_metalinter: interfacer: package \"memcached\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference"
2023-11-13T23:59:29.7875429Z level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: goanalysis_metalinter: interfacer: package \"memcached\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference\n\n"
2023-11-13T23:59:29.8200718Z make[1]: *** [Makefile:27: lint] Error 3
2023-11-13T23:59:29.8202433Z make[1]: Leaving directory '/home/runner/work/splunk-otel-collector/splunk-otel-collector/internal/signalfx-agent'
2023-11-13T23:59:29.8203820Z make: *** [Makefile:64: for-all] Error 2
2023-11-13T23:59:29.8217390Z ##[error]Process completed with exit code 2.

Notice it will fail with different package being the target, but always within internal/signalfx-agent.

Raw logs here.

@crobert-1
Copy link
Contributor

crobert-1 commented Nov 14, 2023

I believe Ryan's comment is correct, the panics are being hit in updated dependencies. I point to dependencies as the cause because there's no consistency in our repo where it's being hit. This is not essential to update at this time, we'll wait until it's fixed.

@crobert-1 crobert-1 closed this Nov 14, 2023
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 14, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/go_modules/internal/tools/golang.org/x/tools-0.15.0 branch November 14, 2023 17:51
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants