mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
Add buildTrackedDirs which runs "git ls-files" once from the walk root and builds a set of directories containing at least one tracked file. findMainPackages uses this set to skip untracked directories (dist/, vendor/, node_modules/, build artifacts, etc.) without having to enumerate git-ignored paths explicitly. Falls back to walking everything when git is unavailable or the directory is not inside a repository.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%