Repository navigation
feat: Allow import-trees to be used in argument as if they were paths. - #12
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces support for treating import-tree objects as if they were filesystem paths.
- Updates default.nix by adding helper functions for handling import-trees.
- Adds tests in checkmate.nix to verify that import-trees work as arguments.
- Updates README.md to document the new behavior.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| default.nix | Adds helper functions (listFilesRecursive, treeFiles, isImportTree) to enable import-tree handling. |
| checkmate.nix | Introduces a test case validating import-tree objects used as paths. |
| README.md | Updates documentation to describe the new usage of import-tree objects. |
Comments suppressed due to low confidence (2)
default.nix:33
- [nitpick] Consider renaming 'treeFiles' to 'importTreeFiles' to better reflect its purpose and improve code clarity in handling import-tree objects.
treeFiles = t: (t.withLib lib).leafs.result;
checkmate.nix:170
- [nitpick] Consider using a more conventional and concise attribute name (e.g., 'test_import_tree_path_handling') instead of a long descriptive string to maintain consistency and ease of reference.
import-tree."test can take other import-trees as if they were paths" = {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.