osbase/build/fsspec: change order of arguments
We should always use the key as target path, as that's unique.
Change-Id: I09085448efda67cb6d1c0470fa15e4282b38e0d5
Reviewed-on: https://review.monogon.dev/c/monogon/+/4035
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/osbase/build/fsspec/def.bzl b/osbase/build/fsspec/def.bzl
index 8e68069..0165208 100644
--- a/osbase/build/fsspec/def.bzl
+++ b/osbase/build/fsspec/def.bzl
@@ -46,7 +46,7 @@
fs_files.append(struct(path = p, source_path = src.path, mode = mode, uid = 0, gid = 0))
fs_symlinks = []
- for target, p in ctx.attr.symlinks.items():
+ for p, target in ctx.attr.symlinks.items():
fs_symlinks.append(struct(path = p, target_path = target))
fs_spec_content = struct(file = fs_files, directory = [], symbolic_link = fs_symlinks)