Skip to content

Commit

Permalink
feat: use build version aware caching (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Mar 25, 2024
1 parent e1f14c4 commit 52f4541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/constants.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module config

import os
import metadata

// analyzer_name is the name of the analyzer.
pub const analyzer_name = 'v-analyzer'
Expand Down Expand Up @@ -29,7 +30,7 @@ pub const analyzer_global_config_path = os.join_path(analyzer_configs_path, anal

// analyzer_caches_path is the path to the directory containing the
// cache files for the analyzer.
pub const analyzer_caches_path = os.join_path(os.cache_dir(), 'v-analyzer')
pub const analyzer_caches_path = os.join_path(os.cache_dir(), 'v-analyzer', '${metadata.build_commit}_${os.file_last_mod_unix(os.executable())}')

// analyzer_stubs_path is the path to the directory containing the
// unpacked stub files for the analyzer.
Expand Down

0 comments on commit 52f4541

Please sign in to comment.