Skip to content

Commit

Permalink
workaround a bootstrapping problem with the old cache/ folder, create…
Browse files Browse the repository at this point in the history
…d by vc/v.c through `make`
  • Loading branch information
spytheman committed Oct 10, 2024
1 parent 6c613a4 commit 1a723ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vlib/v/tests/projects_that_should_compile_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import os

fn testsuite_begin() {
os.setenv('VCOLORS', 'never', true)
// TODO: remove this, when after vc/v.c *also* uses `_cache`, instead of `cache`:
old_cache_path := os.join_path(os.vmodules_dir(), 'cache')
dump(old_cache_path)
if os.exists(old_cache_path) {
os.rmdir_all(old_cache_path)!
}
}

fn vroot_path(relpath string) string {
Expand Down

0 comments on commit 1a723ee

Please sign in to comment.