Skip to content

Commit

Permalink
Update go2v.v (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaskhan authored Dec 26, 2023
1 parent c79fe34 commit 462eecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transpiler/go2v.v
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ pub fn go_to_v(input_path string, output_path string) ! {
pub fn convert_and_write(input_path string, output_path string) ! {
println('converting "${input_path}" -> "${output_path}"')

conversion := os.execute('go run "${os.resource_abs_path('transpiler')}/ast_getter.go" -- "${input_path}"')
path_ast_getter := os.join_path(os.resource_abs_path('transpiler'), 'ast_getter.go')
conversion := os.execute('go run "${path_ast_getter}" -- "${input_path}"')
if conversion.exit_code != 0 {
return error(term.red('"${input_path}" is not a valid Go file') +
'\n
Expand Down

0 comments on commit 462eecb

Please sign in to comment.