[tools] go/packages: skip TestCompiledGoFilesIncludesDepsErrors without cgo

2 views
Skip to first unread message

David du Colombier (Gerrit)

unread,
Jun 26, 2026, 2:07:40 PM (17 hours ago) Jun 26
to Michael Matloob, Richard Miller, Alan Donovan, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
Attention needed from Alan Donovan, Michael Matloob and Richard Miller

David du Colombier has uploaded the change for review

David du Colombier would like Michael Matloob, Richard Miller and Alan Donovan to review this change.

Commit message

go/packages: skip TestCompiledGoFilesIncludesDepsErrors without cgo

TestCompiledGoFilesIncludesDepsErrors uses cgo to
produce a dependency error. Plan 9 does not support
cgo, so skip it when cgo is unavailable, like the
other cgo tests.
Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca

Change diff

diff --git a/go/packages/packages_test.go b/go/packages/packages_test.go
index 7d6cffa..1e939a5 100644
--- a/go/packages/packages_test.go
+++ b/go/packages/packages_test.go
@@ -3573,6 +3573,7 @@
// See golang/go#78083.
func TestCompiledGoFilesIncludesDepsErrors(t *testing.T) {
testenv.NeedsGoPackages(t)
+ testenv.NeedsTool(t, "cgo")

dir := writeTree(t, `
-- go.mod --

Change information

Files:
  • M go/packages/packages_test.go
Change size: XS
Delta: 1 file changed, 1 insertion(+), 0 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Alan Donovan
  • Michael Matloob
  • Richard Miller
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
Gerrit-Change-Number: 794842
Gerrit-PatchSet: 1
Gerrit-Owner: David du Colombier <0in...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: Michael Matloob <mat...@golang.org>
Gerrit-Attention: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: Alan Donovan <adon...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Michael Matloob (Gerrit)

unread,
Jun 26, 2026, 2:08:53 PM (17 hours ago) Jun 26
to David du Colombier, goph...@pubsubhelper.golang.org, Alan Donovan, Richard Miller, golang-co...@googlegroups.com
Attention needed from Alan Donovan, David du Colombier and Richard Miller

Michael Matloob voted Code-Review+2

Code-Review+2
Open in Gerrit

Related details

Attention is currently required from:
  • Alan Donovan
  • David du Colombier
  • Richard Miller
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
Gerrit-Change-Number: 794842
Gerrit-PatchSet: 1
Gerrit-Owner: David du Colombier <0in...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: David du Colombier <0in...@gmail.com>
Gerrit-Attention: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: Alan Donovan <adon...@google.com>
Gerrit-Comment-Date: Fri, 26 Jun 2026 18:08:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Matloob (Gerrit)

unread,
Jun 26, 2026, 2:08:58 PM (17 hours ago) Jun 26
to David du Colombier, goph...@pubsubhelper.golang.org, Michael Matloob, Alan Donovan, Richard Miller, golang-co...@googlegroups.com
Attention needed from Alan Donovan, David du Colombier and Richard Miller

Michael Matloob voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alan Donovan
  • David du Colombier
  • Richard Miller
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
Gerrit-Change-Number: 794842
Gerrit-PatchSet: 1
Gerrit-Owner: David du Colombier <0in...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Michael Matloob <mat...@google.com>
Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: David du Colombier <0in...@gmail.com>
Gerrit-Attention: Richard Miller <millerr...@gmail.com>
Gerrit-Attention: Alan Donovan <adon...@google.com>
Gerrit-Comment-Date: Fri, 26 Jun 2026 18:08:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Alan Donovan (Gerrit)

unread,
Jun 26, 2026, 2:09:07 PM (17 hours ago) Jun 26
to David du Colombier, goph...@pubsubhelper.golang.org, Michael Matloob, Michael Matloob, Richard Miller, golang-co...@googlegroups.com
Attention needed from David du Colombier and Richard Miller

Alan Donovan voted and added 1 comment

Votes added by Alan Donovan

Auto-Submit+1
Code-Review+2
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Alan Donovan . resolved

Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • David du Colombier
  • Richard Miller
Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
    Gerrit-Change-Number: 794842
    Gerrit-PatchSet: 1
    Gerrit-Owner: David du Colombier <0in...@gmail.com>
    Gerrit-Reviewer: Alan Donovan <adon...@google.com>
    Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
    Gerrit-Reviewer: Michael Matloob <mat...@google.com>
    Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
    Gerrit-Attention: David du Colombier <0in...@gmail.com>
    Gerrit-Attention: Richard Miller <millerr...@gmail.com>
    Gerrit-Comment-Date: Fri, 26 Jun 2026 18:09:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Jun 26, 2026, 2:34:15 PM (16 hours ago) Jun 26
    to David du Colombier, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Alan Donovan, Michael Matloob, Michael Matloob, Richard Miller, golang-co...@googlegroups.com

    Gopher Robot submitted the change

    Change information

    Commit message:
    go/packages: skip TestCompiledGoFilesIncludesDepsErrors without cgo

    TestCompiledGoFilesIncludesDepsErrors uses cgo to
    produce a dependency error. Plan 9 does not support
    cgo, so skip it when cgo is unavailable, like the
    other cgo tests.
    Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
    Reviewed-by: Alan Donovan <adon...@google.com>
    Auto-Submit: Alan Donovan <adon...@google.com>
    Reviewed-by: Michael Matloob <mat...@google.com>
    Reviewed-by: Michael Matloob <mat...@golang.org>
    Files:
    • M go/packages/packages_test.go
    Change size: XS
    Delta: 1 file changed, 1 insertion(+), 0 deletions(-)
    Branch: refs/heads/master
    Submit Requirements:
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca
    Gerrit-Change-Number: 794842
    Gerrit-PatchSet: 2
    Gerrit-Owner: David du Colombier <0in...@gmail.com>
    Gerrit-Reviewer: Alan Donovan <adon...@google.com>
    Gerrit-Reviewer: Gopher Robot <go...@golang.org>
    Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
    Gerrit-Reviewer: Michael Matloob <mat...@google.com>
    Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages