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

Try to avoid IFD in vendorCargoDeps and crateNameFromCargoToml; also avoid recommending nesting cleanCargoSource and path #641

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

ipetkov
Copy link
Owner

@ipetkov ipetkov commented Jun 11, 2024

Motivation

We don't need to nest cleanCargoSource and path just to populate a default value for name. As they both ultimately delegate to builtins.path, the nesting can lead to IFD in situations which are otherwise avoidable

Fixes #612

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md (or general documentation) with changes
  • updated CHANGELOG.md

ipetkov added 3 commits June 10, 2024 20:27
We don't need to nest `cleanCargoSource` and `path` just to populate a
default value for `name`. As they both ultimately delegate to
`builtins.path`, the nesting can lead to IFD in situations which are
otherwise avoidable
@ipetkov ipetkov merged commit a3f0c63 into master Jun 11, 2024
19 checks passed
@ipetkov ipetkov deleted the ifd branch June 11, 2024 03:53
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.

nix flake check fails on crane due to IFD
1 participant