Closed rgl closed 8 months ago
It would be nice, indeed, to have a wasm target for it (it also would be nice if this didn't auto-correct "wasm" to "warm" 😁 ).
Of the issues you raised:
getFileProperties
and getDeviceNumbers
: these have platform-specific functions, defined in finalize_unix.go and finalize_windows.go. I do not know what the equivalent implementations for wasm would be; if you know, and want to add a finalize_wasm.go
, I definitely would take that.getTimespec
(from gopkg.in/djherbis/times.v1
) - this one actually has some wasm support in v1.6.0, see times_wasip1.go. We can bump the dependency here to v1.6.0, which should solve it. Check it locally, and if that issue goes away, open the PR on this.isTerminal
(from github.com/sirupsen/logrus
) is called here, and is defined on each platform: solaris, unix and windows. We have the latest semver, which does not have wasm support, but it looks like master
branch does here. Go ahead and open a PR to bump this to latest. FYI, someone had a compilation issue, documented here.Thank you! I will look into your suggestions and will report back!
@deitch got it working at https://github.com/diskfs/go-diskfs/pull/208 :-)
please take a look.
It would be pretty nice to be able to target wasm.
Currently with with go 1.21.5 and go-diskfs 1.4.0. a simple program that creates a FAT32 disk image, is failing as: