bytedance/sonic

go: module github.com/cloudwego/iasm@upgrade found (v0.1.0), but does not contain package github.com/cloudwego/iasm/x86_64

shiyunjin opened this issue ยท 15 comments

    github.com/bytedance/sonic imports
    github.com/bytedance/sonic/ast imports
    github.com/cloudwego/base64x imports
    github.com/bytedance/sonic/loader imports
    github.com/bytedance/sonic/internal/abi imports
    github.com/cloudwego/iasm/x86_64: no required module provides package github.com/cloudwego/iasm/x86_64; to add it:
    go get github.com/cloudwego/iasm/x86_64

same situation,Maybe it's due to the #618

temporarily downgrade to version: v1.11.2 fix this error.
go get github.com/bytedance/sonic@v1.11.2
@AsterDY Can you take some time to update this to resolve the issue?

"github.com/cloudwego/iasm" should be v0.0.9

The package "iasm" has always failed all it's tests: cloudwego/iasm#1

Edit: Which is why I don't think changing the version to v0.0.9 would help

Please use this version of iasm:

go get github.com/cloudwego/iasm@v0.0.9

Refer to cloudwego/kitex#1319 for more details.

I see no reason or proof why that would work. All the tests in that package (even in version 0.0.9) are failing with this exact issue.

The referred issue does not include any PRs. No working tests that might give us a measure of confidence. How do we know that changing the version actually solves the issue?

Sorry for the inconvenience.

This project is ported from a personal repository and we didn't pay attention to the workflow which is using go1.2 (not supported) and ARM64 (also not supported).

The v0.0.9 is just the same as the original version and v0.1.0 introduced incompatible changes and was wrongly set as the latest release.

We've removed v0.1.0 to avoid further confusion and will fix the workflow soon after.

I have tested it and it does indeed resolve the issue. Thank you @felix021

I have imported
github.com/bytedance/sonic v1.11.2
and then
github.com/chenzhuoyu/iasm v0.9.0
but this not resolve the issue.
Error:
go: all: module github.com/cloudwego/iasm@upgrade found (v0.1.0), but does not contain package github.com/cloudwego/iasm/x86_64

@jurilucci-geoin bytedance 1.11.2 does not have this issue in the first place.

temporarily downgrade to version: v1.11.2 fix this error.
go get github.com/bytedance/sonic@v1.11.2

Sorry for the inconvenience.

This project is ported from a personal repository and we didn't pay attention to the workflow which is using go1.2 (not supported) and ARM64 (also not supported).

The v0.0.9 is just the same as the original version and v0.1.0 introduced incompatible changes and was wrongly set as the latest release.

We've removed v0.1.0 to avoid further confusion and will fix the workflow soon after.

@jurilucci-geoin As is explained before, this issue can be solved by:

go get github.com/cloudwego/iasm@v0.0.9

Refer to cloudwego/kitex#1319 for more details.

Also experiencing this issue via gin:

 go: mypkg imports
	github.com/gin-gonic/gin imports
	github.com/gin-gonic/gin/internal/json imports
	github.com/bytedance/sonic imports
	github.com/bytedance/sonic/ast imports
	github.com/cloudwego/base64x imports
	github.com/bytedance/sonic/loader imports
	github.com/bytedance/sonic/internal/abi imports
	github.com/cloudwego/iasm/x86_64: module github.com/cloudwego/iasm@latest found (v0.1.0), but does not contain package github.com/cloudwego/iasm/x86_64

TIPS: DON'T ALWAYS update your go mod using go get -u, this is not a recommended way to maintain your dependencies. Just go get to update the dependency you need update

Also experiencing this issue via gin:

 go: mypkg imports
	github.com/gin-gonic/gin imports
	github.com/gin-gonic/gin/internal/json imports
	github.com/bytedance/sonic imports
	github.com/bytedance/sonic/ast imports
	github.com/cloudwego/base64x imports
	github.com/bytedance/sonic/loader imports
	github.com/bytedance/sonic/internal/abi imports
	github.com/cloudwego/iasm/x86_64: module github.com/cloudwego/iasm@latest found (v0.1.0), but does not contain package github.com/cloudwego/iasm/x86_64

sorry, this issue can be solved by:

go get github.com/cloudwego/iasm@latest