Skip to content

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented May 21, 2025

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

Are these changes tested?

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @Fokko !

@liurenjie1024 liurenjie1024 merged commit 0d5e5e8 into apache:main May 22, 2025
17 checks passed
@kevinjqliu
Copy link
Contributor

Thanks @Fokko! Looking at the script, I realized that the directories to check are hardcoded

DIRS = [
"crates/iceberg",
"crates/catalog/glue", "crates/catalog/hms",
"crates/catalog/memory", "crates/catalog/rest",
"crates/catalog/sql",
"crates/integrations/datafusion",
"bindings/python"
]

In the project, there are a few other directories with Cargo.toml that's not in the list above. For example,

crates/catalog/s3tables
crates/integrations/cache-moka
crates/integrations/cli
crates/examples
crates/integration_tests
crates/sqllogictest
crates/test_utils

These are generated using find . -name Cargo.toml -exec dirname {} \;

@Fokko Fokko deleted the fd-add-tsv branch May 22, 2025 07:32
kevinjqliu added a commit that referenced this pull request May 22, 2025
## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes #123` indicates that this PR will close issue #123.
-->

- Related to #1325.

## What changes are included in this PR?

<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->
`DEPENDENCIES.rust.tsv` files were accidentally removed as part of the
0.5.0 prep PR (#1345). It was added back and updated in the follow up PR
(#1363).

I realized this happened because I did not install `cargo-deny` in my
env and the dependency generation script did not error.

This PR changes generation script (`python3 ./scripts/dependencies.py
generate`) to error when the underlying subprocess call (`cargo deny`)
errors.

I also ran `uvx ruff format scripts/dependencies.py` to format the
script

## Are these changes tested?

<!--
Specify what test covers (unit test, integration test, etc.).

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
Yes, manually

I was also able to install `cargo-deny` and confirm #1363 changes are
all correct
```
cargo install --locked cargo-deny
```
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