Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vlang recipe fails to run #1624

Closed
Dialga opened this issue Jun 20, 2023 · 1 comment
Closed

vlang recipe fails to run #1624

Dialga opened this issue Jun 20, 2023 · 1 comment

Comments

@Dialga
Copy link
Contributor

Dialga commented Jun 20, 2023

Following the polyglot example, I tried using a vlang script which didn't work.

$ cat justfile
v:
  #!/bin/env v
  println("hi from v!")
$ just
usage: `v file.v` or `v directory`
unknown file extension ``
error: Recipe `v` failed with exit code 1

Here V expects the extracted script to have a .vsh extension in order to run as a script.

@Taywee
Copy link

Taywee commented Jul 11, 2023

Looks like vlang has a way to work around that.

Looks to me that the way of doing that is setting the shebang to #!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run to make sure you don't keep redundant files around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants