Skip to content

Commit b5730b7

Browse files
committed
better logging
1 parent ebd3016 commit b5730b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/create-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fi
5050

5151
# Build and copy over usertest
5252
cd "$base"/usertest
53-
usertest_binary="$(cargo build --message-format=json | jq -r 'select(.reason == "compiler-artifact") | .filenames[]' | grep "usertest")"
53+
usertest_binary="$(cargo build --message-format=json-render-diagnostics | jq -r 'select(.reason == "compiler-artifact" and .target.name == "usertest") | .executable // empty')"
5454
cp "$usertest_binary" "$base/build/rootfs/bin/usertest"
5555

5656
# make image

0 commit comments

Comments
 (0)