tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

tinygo: add relative and absolute --dir options to wasmtime args

Open ydnar opened this issue 1 year ago • 5 comments
trafficstars

This is a second stab at fixing the wasip1 and wasip2 --dir args to wasmtime.

ydnar avatar Aug 22 '24 20:08 ydnar

I think there is some code in the waisp1 or wasip2 branch that detects "something" (will need to double check) based on the first or last --dir option provided. Are we breaking anything else by effectively having two names for each directory in the module path here?

dgryski avatar Aug 26 '24 17:08 dgryski

I think there is some code in the waisp1 or wasip2 branch that detects "something" (will need to double check) based on the first or last --dir option provided. Are we breaking anything else by effectively having two names for each directory in the module path here?

It worked for the tests I ran. Did you discover anything?

ydnar avatar Aug 26 '24 19:08 ydnar

No, I was just wondering because I know I had issues with argument ordering. I didn't see any failures, but I can run my larger test corpus and see what falls out.

dgryski avatar Aug 26 '24 21:08 dgryski

@ydnar did you get any further with this PR? You could try running the test locally (make test GOTESTPKGS=. GOTESTFLAGS="-v -run=Build"), maybe it'll give some more information as to what goes wrong?

aykevl avatar Aug 27 '24 16:08 aykevl

I haven't. I'll try that!

ydnar avatar Aug 27 '24 16:08 ydnar

@ydnar looks like CI still failing here: https://github.com/tinygo-org/tinygo/actions/runs/10874218316/job/30180223920?pr=4431#step:19:33

Possible timeout?

deadprogram avatar Sep 16 '24 13:09 deadprogram

Looks like a logic error on my part. Fixed!

I wanted -x to accurately reflect the arguments passed to wasmtime, but I initially failed to account for the difference between running go test and go run in the section where I moved the --dir arguments to. The last commit fixes this.

ydnar avatar Sep 17 '24 00:09 ydnar

@ydnar LGTM do you want to squash these commits yourself, or would you prefer that I do it for you?

deadprogram avatar Sep 17 '24 05:09 deadprogram

Is squash merge okay?

ydnar avatar Sep 17 '24 07:09 ydnar

Is squash merge okay?

Done. Thank you very much!

deadprogram avatar Sep 17 '24 07:09 deadprogram