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

ci(rust): only use allowed actions #1749

Merged
merged 3 commits into from
Apr 23, 2024
Merged

ci(rust): only use allowed actions #1749

merged 3 commits into from
Apr 23, 2024

Conversation

mbrobbel
Copy link
Contributor

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.

@lidavidm
Copy link
Member

I think you just need to add Cargo.lock to https://github.com/apache/arrow-adbc/blob/main/dev/release/rat_exclude_files.txt

Comment on lines +76 to +77
- name: Rustfmt
run: cargo fmt --all -- --check
Copy link
Member

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?

@mbrobbel mbrobbel requested a review from kou as a code owner April 23, 2024 11:44
@lidavidm lidavidm merged commit 93dda62 into apache:main Apr 23, 2024
5 checks passed
@mbrobbel mbrobbel deleted the rust/ci branch April 23, 2024 11:58
@@ -0,0 +1,799 @@
# This file is automatically @generated by Cargo.
Copy link
Contributor

@alexandreyc alexandreyc Apr 23, 2024

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 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lidavidm pushed a commit that referenced this pull request Apr 23, 2024
davidhcoe pushed a commit to davidhcoe/arrow-adbc that referenced this pull request Apr 25, 2024
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.
davidhcoe pushed a commit to davidhcoe/arrow-adbc that referenced this pull request Apr 25, 2024
cocoa-xu pushed a commit to meowcraft-dev/arrow-adbc that referenced this pull request May 8, 2024
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.
cocoa-xu pushed a commit to meowcraft-dev/arrow-adbc that referenced this pull request May 8, 2024
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.

3 participants