We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd3016 commit b5730b7Copy full SHA for b5730b7
1 file changed
scripts/create-image.sh
@@ -50,7 +50,7 @@ fi
50
51
# Build and copy over usertest
52
cd "$base"/usertest
53
-usertest_binary="$(cargo build --message-format=json | jq -r 'select(.reason == "compiler-artifact") | .filenames[]' | grep "usertest")"
+usertest_binary="$(cargo build --message-format=json-render-diagnostics | jq -r 'select(.reason == "compiler-artifact" and .target.name == "usertest") | .executable // empty')"
54
cp "$usertest_binary" "$base/build/rootfs/bin/usertest"
55
56
# make image
0 commit comments