Skip to content

Commit

Permalink
back on track
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Aug 6, 2024
1 parent 0e3cac8 commit b3f04cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- debug-ci
pull_request:
branches:
- main
Expand Down Expand Up @@ -67,13 +68,9 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Build Release
run: cargo build --verbose --release

- name: Run tests
run: |
cargo test --workspace --verbose
cargo test --workspace --verbose
- name: Install JDK
uses: actions/[email protected]
Expand Down
12 changes: 12 additions & 0 deletions fs-index/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ pub(crate) fn discover_paths<P: AsRef<Path>>(
) -> Result<Vec<DirEntry>> {
log::debug!("Discovering paths at root path: {:?}", root_path.as_ref());

// Print files in the root directory (using fs::read_dir)
for entry in fs::read_dir(&root_path)? {
let entry = entry?;
log::trace!("read_dir Entry: {:?}", entry.path());
}

// Print files in the root directory
for entry in WalkDir::new(&root_path) {
let entry = entry?;
log::trace!("WalkDir Entry: {:?}", entry.path());
}

let walker = WalkDir::new(&root_path)
.min_depth(1) // Skip the root directory
.into_iter()
Expand Down

0 comments on commit b3f04cf

Please sign in to comment.