From bf835d47d8b710c4a7197b1ea20c9e4f96fb3845 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 12 Dec 2021 01:20:21 +0200 Subject: [PATCH] tools: fix `v build-examples` on windows --- cmd/tools/vbuild-examples.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/tools/vbuild-examples.v b/cmd/tools/vbuild-examples.v index 184aba6bb6..027ec1efe2 100644 --- a/cmd/tools/vbuild-examples.v +++ b/cmd/tools/vbuild-examples.v @@ -12,18 +12,18 @@ const efolders = [ fn main() { args_string := os.args[1..].join(' ') params := args_string.all_before('build-examples') - skip_prefixes := efolders.map(os.join_path(vroot, it)) + skip_prefixes := efolders.map(os.real_path(os.join_path_single(vroot, it))) res := testing.v_build_failing_skipped(params, 'examples', skip_prefixes, fn (mut session testing.TestSession) { for x in efolders { pathsegments := x.split_any('/') - session.add(os.join_path(vroot, ...pathsegments)) + session.add(os.real_path(os.join_path(vroot, ...pathsegments))) } }) if res { exit(1) } - if testing.v_build_failing_skipped(params + '-live', os.join_path('examples', 'hot_reload'), - skip_prefixes, fn (mut session testing.TestSession) {}) + if testing.v_build_failing_skipped(params + '-live', os.join_path_single('examples', + 'hot_reload'), skip_prefixes, fn (mut session testing.TestSession) {}) { exit(1) }