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

Make invoke clean-all task delete worker/include/FBS #1397

Merged
merged 2 commits into from
May 10, 2024

Conversation

ibc
Copy link
Member

@ibc ibc commented May 10, 2024

Details

  • worker/fbs/meson.build produces FlatBuffers C++ include files in worker/include/FBS folder.
  • Despite such a folder is gitignored, cargo publish complains if that folder and its files exist.
  • So make invoke clean-all also delete worker/include/FBS.
  • Bonus track: Use shutil.rmtree(path, ignore_errors=True) instead of wrapping it with try/except everywhere (see https://docs.python.org/3/library/shutil.html#shutil.rmtree).

### Details

- `worker/fbs/meson.build` produces FlatBuffers C++ include files in `worker/include/FBS` folder.
- Despite such a folder is gitignored, `cargo publish` complains if that folder and its files exist.
- So make `invoke clean-all` also delete `worker/include/FBS`.
- Bonus track: Use `shutil.rmtree(path, ignore_errors=True)` instead of wrapping it with `try/except` everywhere.
@ibc ibc requested review from jmillan and nazar-pc May 10, 2024 09:40
@ibc ibc merged commit 7db7e36 into v3 May 10, 2024
35 checks passed
@ibc ibc deleted the invoke-clean-all-deletes-worker-include-fbs branch May 10, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants