Closed anjackson closed 2 years ago
Okay, so hacking our the dependency on user.Current
(f84deffe28f45472c62434c3eb682dc516fd8e29) needs to be done with more care.
But, other than that, with these changes, I managed to successfully run a Siegfried identification process in the browser via WebAssembly. See https://github.com/ukwa/siegfried-js#readme
look forward to trying this out, thanks Andy!
Thanks Richard. I just realised I could extend the existing conditional build settings for config/default.go
rather than modifying the behaviour of the sf
tool, so that should be an improvement.
This add an no-op implementation of
mmap
for thejs
platform. With this in place, Siegfried compiles under:NOTE THAT THIS HAS NOT YET BEEN TESTED!Now tested and seems to work well, see https://github.com/ukwa/siegfried-js#readme