From 99a4d8472d6f68d353e54974fb7b356b12237df4 Mon Sep 17 00:00:00 2001 From: Tony Worm Date: Sat, 4 May 2024 15:27:20 -0400 Subject: [PATCH] hof/runtime: remove break stmt to support multiple @userfiles in one struct --- lib/runtime/load.go | 2 +- test/userfiles/main.cue | 1 + test/userfiles/other/baz.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/userfiles/other/baz.txt diff --git a/lib/runtime/load.go b/lib/runtime/load.go index e39d48ea..62314313 100644 --- a/lib/runtime/load.go +++ b/lib/runtime/load.go @@ -244,7 +244,7 @@ func (R *Runtime) prepPlacedUserfiles() error { return err } - break + // break } } } diff --git a/test/userfiles/main.cue b/test/userfiles/main.cue index 87ea860b..7eac68f2 100644 --- a/test/userfiles/main.cue +++ b/test/userfiles/main.cue @@ -4,4 +4,5 @@ hello: "world" files: { @userfiles(content,trim=content) + @userfiles(other,trim=other) } \ No newline at end of file diff --git a/test/userfiles/other/baz.txt b/test/userfiles/other/baz.txt new file mode 100644 index 00000000..902140ac --- /dev/null +++ b/test/userfiles/other/baz.txt @@ -0,0 +1 @@ +bleep bloop blop \ No newline at end of file