Skip to content

Commit 22239aa

Browse files
authored
Update PROJECT.scl load()s with new magic label. (#640)
1 parent cf2a7dc commit 22239aa

File tree

5 files changed

+5
-25
lines changed

5 files changed

+5
-25
lines changed

configurations/auto_configured_builds/alias/project_main/PROJECT.scl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# A project file that automatically sets build flags for all targets in the
22
# project and warns if the user sets any other flags.
3-
load(
4-
"@bazel_tools//src/main/protobuf/project:project_proto.scl",
5-
"buildable_unit_pb2",
6-
"project_pb2",
7-
)
3+
load("//:project_proto.scl", "buildable_unit_pb2", "project_pb2")
84

95
project = project_pb2.Project.create(
106
# "WARN" means bazel emits a warning if the user sets flags to different

configurations/auto_configured_builds/compatible/PROJECT.scl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
# For example:
66
# --compilation_mode=dbg conflicts with --compilation_mode=opt
77
# --compilation_mode=dbg does not conflict with --//some:unrelated_flag=1
8-
load(
9-
"@bazel_tools//src/main/protobuf/project:project_proto.scl",
10-
"buildable_unit_pb2",
11-
"project_pb2",
12-
)
8+
load("//:project_proto.scl", "buildable_unit_pb2", "project_pb2")
139

1410
project = project_pb2.Project.create(
1511
# "COMPATIBLE" means bazel errors if the user sets flags that conflict with

configurations/auto_configured_builds/strict/PROJECT.scl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
# form.
55
#
66
# See the "compatible" example for a more permissive variant.
7-
load(
8-
"@bazel_tools//src/main/protobuf/project:project_proto.scl",
9-
"buildable_unit_pb2",
10-
"project_pb2",
11-
)
7+
load("//:project_proto.scl", "buildable_unit_pb2", "project_pb2")
128

139
project = project_pb2.Project.create(
1410
# "STRICT" means bazel errors if the user sets any flags that aren't

configurations/auto_configured_builds/target_specific/PROJECT.scl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# A project file that automatically sets build flags where diferent targets use
22
# different flags.
3-
load(
4-
"@bazel_tools//src/main/protobuf/project:project_proto.scl",
5-
"buildable_unit_pb2",
6-
"project_pb2",
7-
)
3+
load("//:project_proto.scl", "buildable_unit_pb2", "project_pb2")
84

95
project = project_pb2.Project.create(
106
buildable_units = [

configurations/auto_configured_builds/warn/PROJECT.scl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# A project file that automatically sets build flags for all targets in the
22
# project and warns if the user sets any other flags.
3-
load(
4-
"@bazel_tools//src/main/protobuf/project:project_proto.scl",
5-
"buildable_unit_pb2",
6-
"project_pb2",
7-
)
3+
load("//:project_proto.scl", "buildable_unit_pb2", "project_pb2")
84

95
project = project_pb2.Project.create(
106
# "WARN" means bazel emits a warning if the user sets flags to different

0 commit comments

Comments
 (0)