[BUG] build_and_copy_rust_modules directory loop is broken and only catches the first module in the list #477
Labels
bug
bug
community
community
Effort - Low
Effort - Low
Frequency - EveryTime
Frequency - EveryTime
Priority - Later
Priority - Later
Reach - Some
Reach - Some
Severity - S3
Severity - S3
Describe the bug
The
build_and_copy_rust_modules
function in thesetup
script does not properly loop through the module directory. Thefilter
function is a generator and is executed on the fly, so since directory changes occur inside the loop theos.path.isdir(f)
part of the loop breaks.To Reproduce
Steps to reproduce the behavior:
rust
directory that falls after therust_example
module alphabeticallypython3 setup build --lang rust -p /usr/lib/memgraph/query_modules
query_modules
Expected behavior
It's expected that all rust modules in the directory are built and copied to the output path except for
rsmgp-sys
.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
This can be fixed by changing the for loop in the
build_and_copy_rust_modules
function to the following:The text was updated successfully, but these errors were encountered: