Skip to content

Conversation

@mbrobbel
Copy link
Member

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
@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
Member 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