Skip to content

Commit 13ea92a

Browse files
committed
ci: use hash.fnv1a.sum64_string instead of hash.sum64_string in Parser.set_path (fix sanitize jobs)
1 parent 43cf354 commit 13ea92a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vlib/v/parser/parser.v

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import v.util
1111
import v.vet
1212
import v.errors
1313
import os
14-
import hash
14+
import hash.fnv1a
1515

1616
const (
1717
builtin_functions = ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit']
@@ -143,7 +143,8 @@ pub fn (mut p Parser) set_path(path string) {
143143
p.file_name = path
144144
p.file_base = os.base(path)
145145
p.file_name_dir = os.dir(path)
146-
p.unique_prefix = hash.sum64_string(p.file_name, 13).hex_full()
146+
hash := fnv1a.sum64_string(path)
147+
p.unique_prefix = hash.hex_full()
147148
if p.file_base.ends_with('_test.v') || p.file_base.ends_with('_test.vv') {
148149
p.inside_test_file = true
149150
}

0 commit comments

Comments
 (0)