Skip to content
Snippets Groups Projects
Commit 4c6556b5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Modify wasm_tests to use our local wasm_exec file instead of the systems. We...

Modify wasm_tests to use our local wasm_exec file instead of the systems. We should not need to do this but there is a dependency somewhere forcing older 'go' module and that is causing an error when instantiating webasm in the tests.
parent 1330dcb4
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@
clean:
go mod tidy
go mod vendor -e
rm *.wasm
rm assets/wasm/*
-rm *.wasm
-rm assets/wasm/*
update:
-GOFLAGS="" go get all
......@@ -44,13 +44,11 @@ worker_binaries:
binaries: binary worker_binaries
wasmException = "vendor/gitlab.com/elixxir/wasm-utils/exception"
wasm_tests:
cp $(wasmException)/throws.go $(wasmException)/throws.go.bak
cp $(wasmException)/throws.dev $(wasmException)/throws.go
GOOS=js GOARCH=wasm go test -v ./...
mv $(wasmException)/throws.go.bak $(wasmException)/throws.go
cp $(shell go env GOROOT)/misc/wasm/wasm_exec.js wasm_exec.js.bak
cp wasm_exec.js $(shell go env GOROOT)/misc/wasm/wasm_exec.js
- GOOS=js GOARCH=wasm go test -v ./...
mv wasm_exec.js.bak $(shell go env GOROOT)/misc/wasm/wasm_exec.js
go_tests:
go test ./... -v
......
......@@ -16,7 +16,7 @@ require (
gitlab.com/elixxir/client/v4 v4.7.3-0.20240201205923-1d997612d968
gitlab.com/elixxir/crypto v0.0.9
gitlab.com/elixxir/primitives v0.0.4
gitlab.com/elixxir/wasm-utils v0.0.2-0.20240126212541-5d98cc8b2555
gitlab.com/elixxir/wasm-utils v0.0.3
gitlab.com/xx_network/crypto v0.0.6
gitlab.com/xx_network/primitives v0.0.5
golang.org/x/crypto v0.17.0
......@@ -33,14 +33,10 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/elliotchance/orderedmap v1.5.1 // indirect
github.com/felixge/fgprof v0.9.3 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gobwas/ws v1.1.0 // indirect
github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
......@@ -49,45 +45,32 @@ require (
github.com/klauspost/compress v1.17.0 // indirect
github.com/klauspost/cpuid/v2 v2.1.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-sqlite3 v1.14.17 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/oasisprotocol/curve25519-voi v0.0.0-20221003100820-41fad3beba17 // indirect
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pkg/profile v1.7.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sethvargo/go-diceware v0.3.0 // indirect
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.18.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2 // indirect
github.com/ttacon/libphonenumber v1.2.1 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/zeebo/blake3 v0.2.3 // indirect
gitlab.com/elixxir/bloomfilter v0.0.1 // indirect
gitlab.com/elixxir/comms v0.0.4 // indirect
gitlab.com/elixxir/ekv v0.4.0 // indirect
gitlab.com/elixxir/ekv v0.4.1 // indirect
gitlab.com/xx_network/comms v0.0.6 // indirect
gitlab.com/xx_network/ring v0.0.3 // indirect
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec // indirect
gitlab.com/yawning/nyquist.git v0.0.0-20221003103146-de5645224a22 // indirect
gitlab.com/yawning/x448.git v0.0.0-20221003101044-617eb9b7d9b7 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/ratelimit v0.3.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
......@@ -95,7 +78,6 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/sqlite v1.5.4 // indirect
gorm.io/gorm v1.25.5 // indirect
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment