Skip to content

Commit 7f6e936

Browse files
committed
verify script: the deploy probe names its input by an absolute path
1 parent 9b5ab5d commit 7f6e936

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.agents/docs/2026-09-12-622-verify.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,12 @@ cat > "$d/build.mcpp" <<'CPP'
7474
import mcpp;
7575
#include <string>
7676
int main() {
77+
// An action runs with the build directory as its cwd, so the source is
78+
// named by its absolute path; the manifest directory is the anchor.
79+
const std::string in = std::string(mcpp::manifest_dir()) + "/gen/in.txt";
7780
const std::string out = std::string(mcpp::out_dir()) + "/res.bin";
7881
mcpp::action a; a.id = "gen:res"; a.role = "source";
79-
a.arg("/bin/cp").arg("gen/in.txt").arg(out.c_str()).input("gen/in.txt").output(out.c_str()).submit();
82+
a.arg("/bin/cp").arg(in.c_str()).arg(out.c_str()).input(in.c_str()).output(out.c_str()).submit();
8083
mcpp::deploy(out.c_str(), "dep.resources");
8184
return 0;
8285
}

0 commit comments

Comments
 (0)