1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Delyan Angelov
62f7e56a18 v.vcache: fix a panic due to a race on creating folders in ~/.vmodules/cache/XY 2023-01-30 19:00:00 +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
yuyi
f6844e9766 all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
Delyan Angelov
f922ed0941 tests: unify all temporary files/folders under $VTMP/v, that can be cleaned by v wipe-cache (#15774) 2022-09-16 04:56:19 +03:00
Delyan Angelov
0b41ff0c6a v.vcache, v.builder: use the module name inside the usecache paths (for more readable cache entries at a glance) (#15476) 2022-08-21 08:55:21 +03:00
Markus F.X.J. Oberhumer
74bb5ae17a os: add an optional "mode" parameter to os.mkdir and os.mkdir_all (#14887) 2022-06-30 13:49:47 +03:00
spaceface
4ed9780b80 all: enable -gc boehm by default (#14577) 2022-06-09 00:44:29 +03:00
Delyan Angelov
82594c0156 v.vcache: improve the output of -d trace_usecache_n 2022-06-07 12:39:30 +03:00
Delyan Angelov
a942ecf737 v.vcache: support -d trace_usecache_n too (less verbose tracing for just the initialisation of CacheManager) 2022-06-07 12:24:53 +03:00
Daniel Däschle
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Delyan Angelov
4624de6cb5 cgen: support -d no_segfault_handler and -d no_main. Cleanup -d trace_xxx descriptions in CONTRIBUTING.md 2021-12-03 19:01:45 +02:00
Delyan Angelov
dee4ffbc99 builder: make -usecache rebuild cached, but changed modules, and their dependants (#12193) 2021-10-15 12:22:59 +03:00
Alexander Medvednikov
853d3cb83e os: make chmod() return error 2021-08-28 09:37:24 +03:00
Alexander Medvednikov
858ba25d55 os: make chdir() return error 2021-08-28 09:35:39 +03:00
Delyan Angelov
a747651f18 v.vcache: another workaround for a tcc arm64 runtime bug 2021-04-07 19:13:05 +03:00
Delyan Angelov
0cb0b0f9c6 v.vcache: workaround a tcc arm64 invalid memory access bug 2021-04-07 19:09:41 +03:00
Lukas Neubert
fdcfe397d4 fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136) 2021-03-06 21:04:51 +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
Delyan Angelov
49b01549da v.vcache: improve tracing of vcache usage 2021-01-29 18:05:13 +02:00
Delyan Angelov
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Delyan Angelov
dc3a6bb169 builder: use the same compilation mode for thirdparty object files (#7450) 2020-12-21 17:46:26 +01:00
Delyan Angelov
3c4b87bfec checker: add check against fn test_opt() ?{} 2020-11-20 15:12:53 +02:00
Delyan Angelov
4b35495fbe all: support VMODULES environment variable (defaulting to ~/.vmodules) 2020-11-08 08:07:17 +02:00
Delyan Angelov
cf21c63183 v.vcache: extract v.vcache to a separate module, to test it and reuse it 2020-10-26 18:37:37 +02:00