-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support custom rz-pm-db URL #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
All changes addressed. Thanks, guys ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that nitpick LGTM
pkg/database.go
Outdated
@@ -24,12 +24,14 @@ var ErrRizinPackageWrongHash = errors.New("wrong hash") | |||
|
|||
const dbPath string = "db" | |||
|
|||
func InitDatabase(path string, rizinVersion string) (Database, error) { | |||
func InitDatabase(path string, rizinVersion string, shouldUpdateDB bool) (Database, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn. I thought I got them all. Fixed!
And add a log line when downloading a package which is very useful to tell the user the project didn't hang: it's just downloading slowly.
Thanks a lot! |
Hey guys. This PR adds an environment variable to support a custom rz-pm-db.
It also adds a new flag to disable DB updatesa
Finally, I also added a log line to tell the user the package is downloading. This is purely for sanity purposes since I thought multiple times the binary hanged when it was just downloading a large repo.
I've added an explanation for this in the README