bytedance / sonic

A blazingly fast JSON serializing & deserializing library
Apache License 2.0
6.54k stars 322 forks source link

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

Closed shiyunjin closed 2 months ago

shiyunjin commented 2 months ago
    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
MScuti commented 2 months ago

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

MScuti commented 2 months ago

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?

AsterDY commented 2 months ago

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

fabszabo commented 2 months ago

The package "iasm" has always failed all it's tests: https://github.com/cloudwego/iasm/issues/1

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

felix021 commented 2 months ago

Please use this version of iasm:

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

Refer to https://github.com/cloudwego/kitex/issues/1319 for more details.

fabszabo commented 2 months ago

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.

fabszabo commented 2 months ago

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?

felix021 commented 2 months ago

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.

fabszabo commented 2 months ago

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

jurilucci-geoin commented 2 months ago

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

fabszabo commented 2 months ago

@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

felix021 commented 2 months ago

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 https://github.com/cloudwego/kitex/issues/1319 for more details.

zenire commented 2 months ago

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
AsterDY commented 2 months ago

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

YangruiEmma commented 2 months ago

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