Commit graph

62 commits

Author SHA1 Message Date
Alexander Medvednikov
a045bb0132 all: use arguments() instead of os.args in some files 2025-02-20 03:07:30 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
Andreas Evensen
caf67ed952
tools: capitalize information output of v up (#21464) 2024-05-08 09:40:51 +03:00
Delyan Angelov
045951924f
tools: be verbose, when a git commands that v up executes fails 2024-05-02 16:07:08 +03:00
Delyan Angelov
44317785e7
tools: use more meaningful names in vup.v 2024-05-02 15:58:54 +03:00
Delyan Angelov
f6d4285d14
tools: use proper ignore/exclude patterns in the git clean, that v up does 2024-05-02 15:49:05 +03:00
Delyan Angelov
1e8873fbb6
tools: protect from cleaning during v up, only ./v , not any matching folder 2024-05-02 15:29:26 +03:00
Delyan Angelov
671f59c570
tools: exclude thirdparty/tcc from the git clean operation, that vup does in case of a missing .git folder 2024-05-02 15:21:21 +03:00
Delyan Angelov
08fec8749b
tools: be more verbose when doing v up in V folder produced by extracting a .zip release file 2024-05-02 14:09:15 +03:00
Turiiya
a458adefb7
v.utils: update githash to be able to get the githash of every passed project (#21178) 2024-04-04 05:26:11 +03:00
☠ ✈︎
cd145b2467
tools: fix v up, by not deleting ./v when missing a .git folder (#19965) 2023-11-22 22:27:08 +02:00
Delyan Angelov
f5c4864db8
tools: print an error message, when make is needed, but is missing on unix 2023-10-25 20:23:07 +03: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
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Delyan Angelov
dcdfdf4dd8
tools: make v up more informative on failure 2022-04-30 10:11:02 +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
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
Steve Phillips
8a49a06201
v up: update os.chdir call to handle error (#11328) 2021-08-28 12:34:10 +03:00
Delyan Angelov
6134c4870b
v.util: extract v.util.version, use it to speed up building v repl, v up and v doctor 2021-07-27 12:59:56 +03:00
Delyan Angelov
5098334e65
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd) 2021-07-20 15:22:04 +03:00
Delyan Angelov
6814c975e5
vself, vup: update to use err.msg instead of err 2021-03-16 21:25:35 +02:00
Delyan Angelov
a9358e4948
tools: fix panicing on a failing make in v up, or recompilation of vup.v 2021-03-08 23:58:07 +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
Delyan Angelov
977a625a45
tools: support v -prod up 2021-02-23 10:05:59 +02:00
Major Taylor
dad68e00d5
vup: add a git installer for Windows, when git is not in path, or not installed at all (#8406) (#8421) 2021-01-30 12:53:57 +02:00
Delyan Angelov
a8f1824e51
vup: log potential backup errors, but do not stop 2021-01-28 00:48:47 +02:00
Delyan Angelov
924fd2bf2a
tools: improve the diagnostic messages from v up and v self even more 2021-01-28 00:45:38 +02:00
Delyan Angelov
242d7d0fc0
tools: improve error diagnostic for v up and v self. Make v self more robust. 2021-01-27 23:58: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
17266ecb07
tools: support cmd/tools/.disable_autorecompilation in v up and v self too 2021-01-18 09:33:33 +02:00
spaceface
a47749b204
vup: hide some output when not in verbose mode (#7477) 2020-12-22 23:42:23 +01:00
JalonSolov
96b6a03d01
vup: minor change to final output string (#6948) 2020-11-25 20:41:03 +01:00
Delyan Angelov
60659f1407 vup: show the commit date of v too 2020-10-30 16:15:47 +02:00
Aqil Contractor
a984f9cf97
vup: add quotes for the people with weird V paths (#6393) 2020-09-17 02:00:56 +03:00
Cezary Drożak
26971da510
v up: correct an error message (#6327) 2020-09-08 00:41:47 +02:00
Delyan Angelov
02bece54a6 vup: use git pull https://github.com/vlang/v master for updating 2020-08-28 21:49:12 +03:00
Delyan Angelov
dde1b89c5e vup: remove empty new line on unix 2020-08-28 19:09:47 +03:00
Delyan Angelov
9b0ef781dc vup: add more diagnostic lines for v -v up 2020-08-25 19:54:27 +03:00
Delyan Angelov
b9e408c499 vup: use '$app.vexe self' 2020-08-25 19:42:10 +03:00
JalonSolov
45505a8423
vup: do v self then make.bat on Windows (#6219) 2020-08-25 19:12:53 +03:00
Delyan Angelov
b6dc2d9106 vup: support -v 2020-06-08 14:49:16 +03:00
Enzo Baldisserri
11b7b97311
parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
JalonSolov
8c8df66986
vup: make 'v up' work from release archive, without a .git folder 2020-06-07 23:59:15 +03:00
sudo-nice
104c278216
vup: replace hardcoded v with $vexe 2020-05-29 04:42:19 +02:00