Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWant to help? Just try out `cargo crev` and give feedback. #37
Comments
dpc
added
help needed
good first issue
labels
Dec 3, 2018
dpc
changed the title
Want to help? Just try `cargo crev`
Want to help? Just try out `cargo crev` and give feedback.
Dec 3, 2018
This comment has been minimized.
This comment has been minimized.
tylerlaberge
commented
Dec 4, 2018
|
Just went through building this project and trying this out and here are some things I ran into (for the most part it seems to be working and looks great) Build notes: Had some issues building this because of some dependencies I didn't have installed, specifically I did not have OpenSSL installed or a C compiler needed for argonautica. These were resolved with
After getting those dependencies installed the project compiled successfully. Perhaps these dependencies should be called out in the build instructions? cargo-crev notes:
if I try the set-upstream command I get permission denied.
So instead of cargo crev db git add/cargo crev db git commit/cargo crev db git push it could instead just be something like cargo crev db save (adds/commits) Reason being is I don't exactly see the use case of having all the git commands available, seems like users really would only need the ability to save and publish to me. Overall, really cool project and I'm excited to see where this goes (and the code looks well written too which is great), hope this feedback helps, when I have time I will try to make some contributions :) |
This comment has been minimized.
This comment has been minimized.
|
I've just improved
#36 - let me know in case it doesn't help (open a new issue with the actual error)
I'm not sure myself. I am proficient git user, so for me issuing raw git commands is easier, I have my own shortcuts, additional commands etc. But I guess not every user has to feel this way, so some helpers for most common workflows, could be useful.
For me, it enables any more powerful workflows and tools. Pushing to multiple places, changing branches, etc. Also - it was quicker to implement a generic |
This comment has been minimized.
This comment has been minimized.
|
@tylerlaberge I was rushing to go to sleep yesterday, but I really appreciate the feedback. Thank you! |
dpc
added this to the 0.1 - MVP: cargo-crev/cargo-trust milestone
Dec 11, 2018
rffrancon
referenced this issue
Dec 15, 2018
Closed
Setup remote Github repo if username available #62
dpc
pinned this issue
Dec 18, 2018
This comment has been minimized.
This comment has been minimized.
|
In the screencast the "and now you review code" part is handwaved. To me, this is the hard part. I know I can't trust package's source code as shown on github, and need to review the actual crate file from crates.io, but getting it is cumbersome. Then I have to ensure I reviewed every file and haven't overlooked anything, and that the crate I dug up is actually the same crate that I'm running trust commands for. Could you have an interactive mode, similar to |
This comment has been minimized.
This comment has been minimized.
|
@kornelski Yes. Of course the review part is the time consuming and difficult one. Part of the reason the |
ThomasdenH
unpinned this issue
Dec 24, 2018
ThomasdenH
pinned this issue
Dec 24, 2018
This comment has been minimized.
This comment has been minimized.
mglax
commented
Dec 29, 2018
•
|
Works fine on Mac OS X. One thing that stroke me first is that the "rating" should be split, the security aspect and the functional aspects are, to me, not really related. I am reviewing a deprecated crate, it appears first on crates.io (the name is an exact match) and I found myself installing it by mistake whilst it was deprecated. Yet, there are no security flaws that I can see (positive review), but since it's deprecated, I'd put a negative note for the functional part. |
This comment has been minimized.
This comment has been minimized.
|
@mglax I don't really see how "functional but insecure" or "secure but non functional" states are any useful for the downstream user of the review. IMO, in both cases you just want to give Once the downstream user will get a dependency flagged for any reason, they are supposed to read the offending comments, and judge accordingly what to do, potentially overwriting the I'm open for discussion about it though. |
This comment has been minimized.
This comment has been minimized.
|
If I only want to use I had a great experience otherwise. Wish this would be part of the official rust ecosystem. We really needed this desperately already yesterday. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@daxpedda Fixed. I'd appreciate a lot if you could test the current git version. Thanks! |
ThomasdenH
unpinned this issue
Jan 3, 2019
This comment has been minimized.
This comment has been minimized.
|
Is there a way to log out? Is there a way to find out where currently fetched proofs are located? I can create seperate issues for those if you want. |
This comment has been minimized.
This comment has been minimized.
|
@daxpedda "Log out"? What exactly do you mean? Fetched proofs are stored in subdirectories for Your local proof repo is in In both cases the |
This comment has been minimized.
This comment has been minimized.
After deleting the cache folder, if I
On Windows it saves it in EDIT: The only way I found to "log out" is to delete the local proof directory, which on windows is in EDIT 2: Running |
This comment has been minimized.
This comment has been minimized.
|
@daxpedda I've created #124 to address the "not-initialied". Initially There are two concepts here: one is cache of where Right now there's no command to "unswitch" from an ID. I'm not sure if this is really needed. If you want to try things without any ID, I guess creating a new, fresh ID with invalid url would effectively do that. You can also delete the whole local crev diff (and possibly cache is well, if you really want). I guess we could have a command for cleaning up the cache ... Can you explain why exactly do you need this things? I knew, maybe there are some better ways to support such use case. |
This comment has been minimized.
This comment has been minimized.
Would love to submit a PR. I think the least we could change is
You are right, this is not really needed. Just needed it right now because I had to create an ID to
I think this sounds useful, but again, I can't really think of any meaningful real world scenarios where this is really needed outside of testing.
So I was thinking to use crev in my CI. Obviously there are still some pieces missing for that to work, but creating an ID is certainly not useful in this scenario or for any other scenario where people do not intend to do anything else then |
This comment has been minimized.
This comment has been minimized.
I totally want it, but just didn't get to implement it yet. Created #131 |
This comment has been minimized.
This comment has been minimized.
arbitrix
commented
Jan 19, 2019
•
|
On Windows the build fails due to missing clang.dll while building argonautica.
|
This comment has been minimized.
This comment has been minimized.
|
@arbitrix https://github.com/dpc/crev/tree/master/cargo-crev#windows If you can think of more specific instructions, I would be happy to land a PR with them. :) I myself, don't have any Windows box, so I rely on other devs/users for Windows support. |
dpc commentedDec 3, 2018
•
edited
cargo-crevis kind of working already. In a sense it's even quite feature complete (alpha quality though)See https://github.com/dpc/crev/tree/master/cargo-crev for instructions.