Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Vagrant boxes (`~/.vagrant.d/boxes`) is now one of the built-in global caches, excluded
when you opt in with `[fixed_dirs] enabled = true`
([#117](https://github.com/AsimovMac/asimov/issues/117)).

- `[skip_paths]` config section: name directories that Asimov should never search, alongside the built-in `~/.Trash` and `~/Library`. Thanks [@lunaluxie](https://github.com/lunaluxie)!

- `asimov doctor` now checks the data files and reports how many sentinels and fixed directories are loaded, so an incomplete install is diagnosed rather than just failing.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This means Asimov never touches a folder that just happens to share a common nam
| **R** | `renv` |
| **DevOps / IaC** | `.terraform`, `.terragrunt-cache`, `.vagrant`, `.direnv`, `cdk.out` |
| **Game dev** | `.godot` |
| **Global caches** (opt-in) | `~/.cache`, `~/.gradle/caches`, `~/.m2/repository`, `~/.npm/_cacache`, `~/.nuget/packages`, `~/.kube/cache`, `~/go/pkg/mod` |
| **Global caches** (opt-in) | `~/.cache`, `~/.gradle/caches`, `~/.m2/repository`, `~/.npm/_cacache`, `~/.nuget/packages`, `~/.kube/cache`, `~/go/pkg/mod`, `~/.vagrant.d/boxes` |

**Don't see your tool?** You can teach Asimov your own directory + sentinel pairs in a couple of lines — no need to wait for a release. See [Add your own patterns](#add-your-own-patterns).

Expand Down
1 change: 1 addition & 0 deletions data/fixed-dirs.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
.m2/repository maven local repository
.npm/_cacache npm content-addressable cache
.nuget/packages nuget global packages
.vagrant.d/boxes vagrant base box images
go/pkg/mod go module cache (0555 inside; exclude as a whole)
8 changes: 8 additions & 0 deletions tests/behavior.bats
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ enabled = true"
refute_excluded "${HOME}/go/pkg/mod/github.com/foo/bar@v1.2.3/vendor"
}

@test "excludes the Vagrant boxes directory when fixed dirs are enabled" {
mkdir -p "${HOME}/.vagrant.d/boxes"
write_config "[fixed_dirs]
enabled = true"
run_asimov
assert_excluded "${HOME}/.vagrant.d/boxes"
}

@test "does not re-exclude already excluded fixed directory" {
mkdir -p "${HOME}/.cache"
write_config "[fixed_dirs]
Expand Down