-
Notifications
You must be signed in to change notification settings - Fork 93
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Update command #9
Conversation
@sbstp Thanks for this review. Just did a new commit with some rewriting :) |
@sbstp I put this PR on hold for now, I need to change the way I get the latest version to a more reliable way. It wont work as soon as the project reach a 2 digits version number. |
Cargo.toml
Outdated
serde = { version = "1", features = ["derive"] } | ||
serde_json = "1.0" |
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.
Can you change this to "1", semver should protect us from breaking changes.
Cargo.toml
Outdated
anyhow = "1" | ||
atty = "0.2" | ||
dirs = "2" | ||
glob = "0.3" | ||
lazy_static = "1" | ||
libc = "0.2" | ||
os_info = "2.0.2" |
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.
Can you change this to "2", semver protects us from breaking changes.
Cargo.toml
Outdated
@@ -13,13 +13,16 @@ license = "Zlib" | |||
exclude = ["releases/**/*"] | |||
|
|||
[dependencies] | |||
attohttpc = { version = "0.11.1", features = ["json"] } |
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.
0.12
is out
I tried out the self update but I have an error:
|
I did some googling, the error above might be due to renaming across filesystems. We put the downloaded binary in |
Interesting, I did not encounter this error during my tests. I'll check it out. |
@sbstp Could you try to reproduce this issue ? It's working on my MacOS env and in my Linux VM |
Yes, I'll check. |
I think the file must be unlinked/removed before we copy over it. |
I updated the code to remove the file before trying the copy. |
It works! |
Be sure to squash lol if we are done with this PR |
Fixes #7
I'm new to Rust so please review carefully and tell me if it needs any changes.
馃憤