Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support RISC-V 64 #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shanduur
Copy link

@shanduur shanduur commented May 7, 2024

Treat it as POC, as I do not fully understand how the Dapper scripts work, but hey, it works for me!

How I tested it:

make ARCH=riscv64
docker run \
    --rm --interactive --tty \
    --volume=./bin/:/mnt/bin \
    --platform=linux/riscv64 \
    riscv64/busybox \
        /mnt/bin/kine

Also, this adds pure Go implementation of SQLite3 client when building without CGO.

Closes #296

@shanduur shanduur requested a review from a team as a code owner May 7, 2024 14:26
@shanduur shanduur force-pushed the riscv64-support branch 3 times, most recently from fc2ab83 to 000288a Compare May 8, 2024 07:31
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>

"github.com/glebarez/go-sqlite"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You seem to have duplicate imports of this and line 25

"github.com/k3s-io/kine/pkg/logstructured/sqllog"
"github.com/k3s-io/kine/pkg/server"
"github.com/k3s-io/kine/pkg/util"
"github.com/mattn/go-sqlite3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate imports here and on line 24

@@ -27,6 +28,7 @@ require (
google.golang.org/grpc v1.56.3
k8s.io/apimachinery v0.28.6
k8s.io/client-go v0.28.6
modernc.org/sqlite v1.28.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to github.com/mattn/go-sqlite3?

@brandond
Copy link
Contributor

brandond commented May 30, 2024

Why are you changing the code at all? This should just build as-is on riscv64.

this adds pure Go implementation of SQLite3 client

I don't think we want that... what is wrong with using cgo on riscv64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for RISC-V 64
3 participants