Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@
enabled: false,
},
{
// rules_go 0.65.0 compiles nogo against the shared x/tools.
// v0.53.0 changed facts.NewDecoder. Lift this rule once a rules_go
// release supports it.
// Rule: Lift this cap when rules_go ships nogo support for x/tools 0.53.
description: "golang.org/x/tools stays below v0.53 until rules_go supports it",
matchManagers: ["gomod"],
matchPackageNames: ["golang.org/x/tools"],
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ jobs:
sysctl kern.maxfiles kern.maxfilesperproc 2>&1 || true
ulimit -a || true

- name: Build the Go nogo smoke target
if: matrix.workspace.id == 'go-smoke'
working-directory: ${{ matrix.workspace.dir }}
run: bazelisk build --config=ci //:nogo_smoke

- name: Test
working-directory: ${{ matrix.workspace.dir }}
run: |
Expand Down
7 changes: 7 additions & 0 deletions go/e2e/smoke/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "nogo")
load("@tbhb_rules//format:defs.bzl", "format_test")
load("@tbhb_rules//repo:defs.bzl", "repo_files")
load("@tbhb_rules//testing:defs.bzl", "expect_failure_test")
Expand All @@ -28,6 +29,12 @@ gazelle(name = "gazelle")

repo_files()

# Compile the rules_go nogo driver against the shared x/tools version.
nogo(
name = "nogo_smoke",
deps = ["@tbhb_rules_go//tests:nogo_inspect"],
)

exports_files([
".golangci.yml",
"go.mod",
Expand Down
7 changes: 7 additions & 0 deletions go/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
load("@tbhb_rules//repo:defs.bzl", "repo_files")

repo_files()

# The smoke consumer uses the analyzer from this module's Go dependency graph.
alias(
name = "nogo_inspect",
actual = "@org_golang_x_tools//go/analysis/passes/inspect",
visibility = ["//visibility:public"],
)
Loading