Remove spurious '@//' root workspace references
Test Plan: covered by tests
X-Origin-Diff: phab/D364
GitOrigin-RevId: 4425fa5756468685dfafaf87186bf12f7da455e8
diff --git a/core/BUILD b/core/BUILD
index 38160dc..d2d6e33 100644
--- a/core/BUILD
+++ b/core/BUILD
@@ -1,20 +1,20 @@
genrule(
name = "image",
srcs = [
- "@//core/build/linux_kernel:bzImage",
- "@//core/build/linux_kernel:initramfs",
+ "//core/build/linux_kernel:bzImage",
+ "//core/build/linux_kernel:initramfs",
],
outs = [
"smalltown.img",
],
cmd = """
- $(location @//core/cmd/mkimage) \
- -efi $(location @//core/build/linux_kernel:bzImage) \
- -initramfs $(location @//core/build/linux_kernel:initramfs) \
+ $(location //core/cmd/mkimage) \
+ -efi $(location //core/build/linux_kernel:bzImage) \
+ -initramfs $(location //core/build/linux_kernel:initramfs) \
-out $@
""",
tools = [
- "@//core/cmd/mkimage",
+ "//core/cmd/mkimage",
],
visibility = ["//visibility:public"],
)
diff --git a/core/build/linux_kernel/BUILD b/core/build/linux_kernel/BUILD
index 8827285..625dd5c 100644
--- a/core/build/linux_kernel/BUILD
+++ b/core/build/linux_kernel/BUILD
@@ -24,9 +24,9 @@
genrule(
name = "initramfs",
srcs = [
- "@//core/cmd/init",
- "@//core/build/utils:mkfs.xfs",
- "@//core/cmd/kube-controlplane",
+ "//core/cmd/init",
+ "//core/build/utils:mkfs.xfs",
+ "//core/cmd/kube-controlplane",
],
outs = [
"initramfs.cpio.lz4",
@@ -36,10 +36,10 @@
dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1
nod /dev/null 0644 0 0 c 1 3
-file /init $(location @//core/cmd/init) 0755 0 0
+file /init $(location //core/cmd/init) 0755 0 0
dir /bin 0755 0 0
-file /bin/mkfs.xfs $(location @//core/build/utils:mkfs.xfs) 0755 0 0
-file /bin/kube-controlplane $(location @//core/cmd/kube-controlplane) 0755 0 0
+file /bin/mkfs.xfs $(location //core/build/utils:mkfs.xfs) 0755 0 0
+file /bin/kube-controlplane $(location //core/cmd/kube-controlplane) 0755 0 0
EOF
""",
tools = [
diff --git a/core/scripts/BUILD b/core/scripts/BUILD
index 2440119..8e8f18a 100644
--- a/core/scripts/BUILD
+++ b/core/scripts/BUILD
@@ -1,8 +1,8 @@
sh_library(
name = "vm_deps",
data = [
- "@//core:image",
- "@//core:swtpm_data",
+ "//core:image",
+ "//core:swtpm_data",
"@edk2//:firmware",
],
)