mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix failing v -W build-tools
and v -W build-examples
; run vfmt.
This commit is contained in:
@@ -131,11 +131,11 @@ fn main() {
|
||||
max_bname := context.max_bname_len(file_byte_map.keys())
|
||||
if context.write_file.len > 0 {
|
||||
mut out_file := os.create(context.write_file) ?
|
||||
out_file.write_str(context.header()) ?
|
||||
out_file.write_string(context.header()) ?
|
||||
for bname, fbytes in file_byte_map {
|
||||
out_file.write_str(context.file2v(bname, fbytes, max_bname)) ?
|
||||
out_file.write_string(context.file2v(bname, fbytes, max_bname)) ?
|
||||
}
|
||||
out_file.write_str(context.footer()) ?
|
||||
out_file.write_string(context.footer()) ?
|
||||
} else {
|
||||
print(context.header())
|
||||
for bname, fbytes in file_byte_map {
|
||||
|
@@ -77,7 +77,7 @@ fn (c &Create) write_vmod(new bool) {
|
||||
cerror(err.msg)
|
||||
exit(1)
|
||||
}
|
||||
vmod.write_str(vmod_content(c)) or { panic(err) }
|
||||
vmod.write_string(vmod_content(c)) or { panic(err) }
|
||||
vmod.close()
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ fn (c &Create) write_main(new bool) {
|
||||
cerror(err.msg)
|
||||
exit(2)
|
||||
}
|
||||
mainfile.write_str(main_content()) or { panic(err) }
|
||||
mainfile.write_string(main_content()) or { panic(err) }
|
||||
mainfile.close()
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ fn (c &Create) create_git_repo(dir string) {
|
||||
// We don't really need a .gitignore, it's just a nice-to-have
|
||||
return
|
||||
}
|
||||
fl.write_str(gen_gitignore(c.name)) or { panic(err) }
|
||||
fl.write_string(gen_gitignore(c.name)) or { panic(err) }
|
||||
fl.close()
|
||||
}
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@ const (
|
||||
vet_folders = [
|
||||
'vlib/sqlite',
|
||||
'vlib/v',
|
||||
'vlib/x/ttf/',
|
||||
'cmd/v',
|
||||
'cmd/tools',
|
||||
'examples/2048',
|
||||
|
Reference in New Issue
Block a user