Skip to content

Commit

Permalink
make sure that $GOPATH/bin is in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Aug 19, 2024
1 parent aeda1d3 commit acc4aa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.v
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ fn create_json(subdir string, test_name string) {
}

fn main() {
// Ensure that $GOPATH/bin is in PATH, so invokin `asty` works:
os.setenv('PATH', os.getenv('PATH') + if os.user_os() == 'windows' { ';' } else { ':' } +
os.join_path(os.home_dir(), 'go/bin'), true)

mut subdir := 'tests'
mut go_file_name := if os.args.len > 1 { os.args[1] } else { '' }
mut app := &App{
Expand Down

0 comments on commit acc4aa3

Please sign in to comment.