ci: use hash.fnv1a.sum64_string instead of hash.sum64_string in Parser.set_path (fix sanitize jobs)

pull/10033/head
Delyan Angelov 2021-05-07 11:20:13 +03:00
parent 43cf3542ac
commit 13ea92a77d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import v.util
import v.vet
import v.errors
import os
import hash
import hash.fnv1a
const (
builtin_functions = ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit']
@ -143,7 +143,8 @@ pub fn (mut p Parser) set_path(path string) {
p.file_name = path
p.file_base = os.base(path)
p.file_name_dir = os.dir(path)
p.unique_prefix = hash.sum64_string(p.file_name, 13).hex_full()
hash := fnv1a.sum64_string(path)
p.unique_prefix = hash.hex_full()
if p.file_base.ends_with('_test.v') || p.file_base.ends_with('_test.vv') {
p.inside_test_file = true
}