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

Incompatibility with RISC-V architecture #27

Open
ileanadumitrescu95 opened this issue Jan 24, 2022 · 1 comment · May be fixed by #37
Open

Incompatibility with RISC-V architecture #27

ileanadumitrescu95 opened this issue Jan 24, 2022 · 1 comment · May be fixed by #37

Comments

@ileanadumitrescu95
Copy link

boltdb does not have the compatibility with RISC-V that bbolt does. raft-boltdb and any other go package that depends on boltdb or raft-boltdb (like consul and nomad) will not build on the RISC-V architecture. v2 of raft-boltdb was meant to use bbolt instead of boltdb, but it still depends on boltdb which causes the build to fail. Can raft-boltdb be modified to have no dependency on boltdb? Debian build log using latest release 2.2.0 is attached.
buildlog_raft-boltdb.txt

@stephen-fox
Copy link

stephen-fox commented Feb 13, 2022

Looking at the code, it appears v2 of this library depends on boltdb to support migrating databases from v1 to v2.

Perhaps the simplest solution is to move the migration function and unit test(s) into source files that are ignored for unsupported platforms (like RISC-V). Assuming that is possible, such a change would preserve API compatibility, and would not introduce a need for a separate Go module.

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