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

extract fuzzy as its own module #459

Merged
merged 1 commit into from
Apr 14, 2021
Merged

extract fuzzy as its own module #459

merged 1 commit into from
Apr 14, 2021

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Apr 14, 2021

Fuzzy depends on raft-boltdb, which depends on raft as well. Having
fuzzy as its own module, breaks the circular dependency.

Also, having fuzzy avoids leaking the raft-boltdb dependency and
versioning constaints into consumers. This was a significant factor, as
raft-boltdb changed storage engine in
hashicorp/raft-boltdb#22. However, given
raft-boltdb storage occured as a api major change, and both raft-boltdb
storage engines can coexist in the same go project, so it's less of an
issue now.

Fuzzy depends on raft-boltdb, which depends on raft as well. Having
fuzzy as its own module, breaks the circular dependency.

Also, having `fuzzy` avoids leaking the raft-boltdb dependency and
versioning constaints into consumers. This was a significant factor, as
`raft-boltdb` changed storage engine in
hashicorp/raft-boltdb#22. However, given
raft-boltdb storage occured as a api major change, and both raft-boltdb
storage engines can coexist in the same go project, so it's less of an
issue now.
Copy link
Contributor

@schristoff schristoff left a comment

Choose a reason for hiding this comment

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

    🤙 Thank you for doing this!

@notnoop notnoop merged commit 49d6276 into main Apr 14, 2021
@notnoop notnoop deleted the go-mod-fuzzy branch April 14, 2021 21:24
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.

2 participants