Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.
This repository was archived by the owner on May 21, 2024. It is now read-only.

bou.ke/monkey does not support Apple Silicon #11

@sergeyklay

Description

@sergeyklay

The tests which uses bou.ke/monkey does not work on ARM64 environments:

$ ./typicalw t
> load environment: APP_ADDRESS, APP_DEBUG, APP_READ_TIMEOUT, APP_WRITE_TIMEOUT, CACHE_DEFAULT_MAX_AGE, CACHE_HOST, CACHE_PASS, CACHE_PORT, CACHE_PREFIX_KEY, PG_CONN_MAX_LIFETIME, PG_DBNAME, PG_DBPASS, PG_DBUSER, PG_HOST, PG_MAX_IDLE_CONNS, PG_MAX_OPEN_CONNS, PG_PORT
test> go test -cover -timeout=30s ./internal/app/controller ./internal/app/infra ./internal/app/infra/log ./internal/app/repo ./internal/app/service ./pkg/cachekit ./pkg/dbtxn ./pkg/echokit ./pkg/echotest ./pkg/logruskit ./pkg/reflectkit ./pkg/restkit ./pkg/sqkit ./pkg/typcfg ./pkg/typdb ./pkg/typdocker ./pkg/typredis
go: downloading github.com/DATA-DOG/go-sqlmock v1.4.1
go: downloading github.com/golang/mock v1.4.4
go: downloading github.com/alicebob/miniredis v2.5.0+incompatible
go: downloading github.com/golang-migrate/migrate v3.5.4+incompatible
go: downloading github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a
go: downloading github.com/gomodule/redigo v1.8.2
go: downloading github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da
go: downloading github.com/go-sql-driver/mysql v1.6.0
# bou.ke/monkey
../../../go/pkg/mod/bou.ke/monkey@v1.0.2/replace.go:24:14: undefined: jmpToFunctionValue
ok  	github.com/typical-go/typical-rest-server/internal/app/controller	0.432s	coverage: 98.1% of statements
?   	github.com/typical-go/typical-rest-server/internal/app/infra	[no test files]
?   	github.com/typical-go/typical-rest-server/internal/app/infra/log	[no test files]
ok  	github.com/typical-go/typical-rest-server/internal/app/repo	0.250s	coverage: 0.0% of statements
ok  	github.com/typical-go/typical-rest-server/internal/app/service	0.337s	coverage: 98.3% of statements
FAIL	github.com/typical-go/typical-rest-server/pkg/cachekit [build failed]
ok  	github.com/typical-go/typical-rest-server/pkg/dbtxn	0.476s	coverage: 100.0% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/echokit	0.668s	coverage: 100.0% of statements
?   	github.com/typical-go/typical-rest-server/pkg/echotest	[no test files]
FAIL	github.com/typical-go/typical-rest-server/pkg/logruskit [build failed]
ok  	github.com/typical-go/typical-rest-server/pkg/reflectkit	0.612s	coverage: 100.0% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/restkit	0.780s	coverage: 100.0% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/sqkit	0.680s	coverage: 95.2% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/typcfg	0.517s	coverage: 94.4% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/typdb	0.444s	coverage: 6.5% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/typdocker	0.567s	coverage: 53.1% of statements
ok  	github.com/typical-go/typical-rest-server/pkg/typredis	0.599s	coverage: 76.9% of statements
FAIL
exit status 2
exit status 2

Note:

../../go/pkg/mod/bou.ke/monkey@v1.0.2/replace.go:24:14: undefined: jmpToFunctionValue

jmpToFunctionValue is implemented only in monkey_amd64.go and monkey_386.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions