Skip to content

Commit dae743d

Browse files
committed
more cleanup
1 parent 3da0b45 commit dae743d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

go/private/context.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def new_source(
309309
for k, v in getattr(attr, "x_defs", {}).items():
310310
v = _expand_location(go, attr, v)
311311
if "." not in k:
312-
k = "{}.{}".format(source["importmap"], k)
312+
k = "{}.{}".format(importmap, k)
313313
x_defs[k] = v
314314
source["x_defs"] = x_defs
315315
if not source["cgo"]:

go/private/rules/nogo.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def _nogo_impl(ctx):
6565
nogo_source = new_source(
6666
go,
6767
struct(
68-
srcs = [struct(files = [nogo_main])],
6968
embed = [ctx.attr._nogo_srcs],
7069
deps = analyzer_archives,
7170
),
71+
generated_srcs = [nogo_main],
7272
name = go.label.name + "~nogo",
7373
importpath = "nogomain",
7474
pathtype = EXPORT_PATH,

go/private/rules/test.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ def _go_test_impl(ctx):
147147
test_source = new_source(
148148
go,
149149
struct(
150-
srcs = [struct(files = [main_go])],
151150
deps = test_deps,
152151
),
153152
name = go.label.name + "~testmain",
154153
importpath = "testmain",
155154
pathtype = INFERRED_PATH,
156155
is_main = True,
156+
generated_srcs = [main_go],
157157
coverage_instrumented = False,
158158
)
159159
test_archive, executable, runfiles = go.binary(

0 commit comments

Comments
 (0)