Skip to content

Commit

Permalink
v.builder: use a more uniq prefix for the generated temporary file na…
Browse files Browse the repository at this point in the history
…mes, to further reduce the chances of collision and sporadic CI failures on windows (#20551)
  • Loading branch information
spytheman committed Jan 15, 2024
1 parent 46abcd9 commit 508117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/builder/rebuilding.v
Expand Up @@ -367,7 +367,7 @@ pub fn (mut b Builder) get_vtmp_filename(base_file_name string, postfix string)
vtmp := os.vtmp_dir()
mut uniq := ''
if !b.pref.reuse_tmpc {
uniq = '.${rand.u64()}'
uniq = '.${rand.ulid()}'
}
fname := os.file_name(os.real_path(base_file_name)) + '${uniq}${postfix}'
return os.real_path(os.join_path(vtmp, fname))
Expand Down

0 comments on commit 508117d

Please sign in to comment.