-
Notifications
You must be signed in to change notification settings - Fork 104
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
ci(rust): only use allowed actions #1749
Conversation
I think you just need to add Cargo.lock to https://github.com/apache/arrow-adbc/blob/main/dev/release/rat_exclude_files.txt |
- name: Rustfmt | ||
run: cargo fmt --all -- --check |
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.
Ideally this would be in pre-commit?
@@ -0,0 +1,799 @@ | |||
# This file is automatically @generated by Cargo. |
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.
I'm not totally convinced that Cargo.lock
must be checked-in for libraries.
After checking some of the most popular crates, almost none of them have it (arrow-rs neither).
On the other hand, I can't find any good reason to not have it 😃
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.
As suggested in #1749 (comment).
Update Rust workflow to only use Apache allowed actions. This also adds `Cargo.lock` (used in cache key) to the Rust workspace following [this recommendation](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html), and fixes some doc warnings.
As suggested in apache#1749 (comment).
Update Rust workflow to only use Apache allowed actions. This also adds `Cargo.lock` (used in cache key) to the Rust workspace following [this recommendation](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html), and fixes some doc warnings.
As suggested in apache#1749 (comment).
Update Rust workflow to only use Apache allowed actions. This also adds
Cargo.lock
(used in cache key) to the Rust workspace following this recommendation, and fixes some doc warnings.