Delyan Angelov
e56e4b3e90
tools: use os.symlink(vexe, vsymlink)
on Windows too ( #17838 )
2023-04-01 08:18:24 +03:00
yuyi
17000ef7b6
checker: check option fn returning error ( fix #17423 ) ( #17438 )
2023-03-02 15:49:50 +02:00
Delyan Angelov
9c511e03f6
tools: remove import v.pref
, just for pref.vexe_path()
, to compile tools faster ( #17411 )
2023-02-26 07:56:14 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
...
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.
NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
Alexander Medvednikov
caa0c2f153
vfmt: voidptr(0) => unsafe { nil } (p.1)
2022-07-21 20:46:01 +03:00
Delyan Angelov
8788512c4d
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
2022-04-12 14:56:02 +03:00
Subhomoy Haldar
5d2995c4d5
tools: support ./v symlink -githubci
( #13403 )
2022-02-08 13:23:10 +02:00
MrsHerobrine
1c17ba82ac
tools: fix the batch script for v symlink
, if the vexe path contains spaces on windows ( #12443 )
2021-11-12 10:29:57 +02:00
pancake
fe65cde03b
tools: use os.symlink instead of system('ln -s') in v symlink
( #10769 )
2021-07-12 14:23:25 +03:00
Thomas Treffner
533f09f7a2
tools: fix v symlink
problem with paths containing spaces ( #10756 )
2021-07-11 18:54:24 +03:00
kac-
8d4c9823ba
tools,clipboard: use lowercase library names for -luser32
etc, allowing linux->windows cross compilation of ui programs ( #10455 )
2021-06-14 15:42:56 +03:00
pancake
89d2f508cc
tools: fix v symlink
, uname -o
doesn't exist on macOS ( #10303 )
2021-06-03 01:22:14 +03:00
Delyan Angelov
92f40f9642
tools: fix v symlink
on windows
2021-04-05 16:06:03 +03:00
Bartimus
3edcb7e601
vsymlink.v: update registry calls on windows ( #9213 )
2021-03-09 16:16:42 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result ( #8974 )
2021-03-08 20:52:13 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg)
-> panic(err)
( #9022 )
2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax ( #8950 )
2021-02-28 23:20:21 +03:00
Ben-Fields
81cf6f7ea2
tools: fix shortcut creation & registry access in v symlink
on windows ( #8994 )
2021-02-27 09:39:36 +02:00
Ben-Fields
63ed3c0d41
tools: fix shortcut creation error in v symlink
on windows ( #8935 )
2021-02-24 14:40:17 +02:00
Thomas Treffner
36a6bc270c
v symlink: fix for termux ( #8896 )
2021-02-22 13:08:41 +02:00
Delyan Angelov
252074836b
tools: fix permission problems after sudo v symlink
2021-02-18 18:11:14 +02:00
Nick Treleaven
4a0367a63c
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free ( #8766 )
2021-02-15 17:15:52 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ?
/ optfn() or {...}
for fn optfn() ? {}
2021-01-26 16:43:17 +02:00
Delyan Angelov
f7698ea160
v symlink: fix windows PATH setting (cmd.exe needs C: not c:)
2020-10-22 17:31:37 +03:00
Lukas Neubert
7471e1fd05
symlink: create /usr/local/bin if it does not exist ( #6621 )
2020-10-16 09:55:55 +02:00
Delyan Angelov
31ef921ef2
ci: fix warnings/errors due to the vfmt change
2020-10-15 16:17:52 +03:00
spaceface777
44deb43252
symlink: remove broken defer ( #6428 )
2020-09-19 22:26:32 +02:00
Ryan Willis
f66967a88c
vsymlink: real Windows symbolic link, fallback to batch, make.bat updates ( #5841 )
2020-07-16 18:33:26 +02:00
Ryan Willis
bb6ab185c3
ci: fix periodic integration tests ( #5666 )
2020-07-04 19:52:25 +02:00
spaceface777
624005bbd0
tcc_win: fix tests
2020-06-19 12:54:56 +02:00
Ryan Willis
08814d6de4
tools/vsymlink: use the win32 api to update the system environment
2020-06-08 09:19:31 +02:00
Delyan Angelov
ca19cec9a5
v symlink: use @echo off for v.bat
2020-05-26 15:46:03 +03:00
Delyan Angelov
e79adc0ba1
v symlink: use a .symlink/v.bat launcher to avoid global PATH polution
2020-05-26 13:34:01 +03:00
Delyan Angelov
7585483c69
v symlink: extract to cmd/tools/vsymlink.v , use setx on windows
2020-05-26 09:30:26 +03:00