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

fix v symlink

This commit is contained in:
Alexander Medvednikov 2019-11-20 18:27:22 +03:00
parent 3e564a2506
commit 8e32ef382a
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,8 @@ jobs:
run: ./v test v run: ./v test v
# - name: Test v->js # - name: Test v->js
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js # run: ./v -o hi.js examples/hello_v_js.v && node hi.js
- name: Test symlink
run: ./v symlink && v -o v2 v.v
- name: Test vid - name: Test vid
run: | run: |
git clone --depth 1 https://github.com/vlang/vid.git git clone --depth 1 https://github.com/vlang/vid.git

View File

@ -1035,7 +1035,8 @@ pub fn vfmt(args[]string) {
} }
pub fn create_symlink() { pub fn create_symlink() {
vexe := vexe_path() $if windows { return }
vexe := os.executable()
link_path := '/usr/local/bin/v' link_path := '/usr/local/bin/v'
ret := os.system('ln -sf $vexe $link_path') ret := os.system('ln -sf $vexe $link_path')
if ret == 0 { if ret == 0 {