Skip to content

Commit

Permalink
Fix the "file is busy" error
Browse files Browse the repository at this point in the history
  • Loading branch information
rdner committed Feb 17, 2022
1 parent af131c8 commit a29efde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ func InstallLinter() error {
if err != nil {
return err
}

err = installScript.Close() // otherwise we cannot run the script
if err != nil {
return err
}

return sh.Run(linterInstallFilename, linterVersion)
}

Expand Down

0 comments on commit a29efde

Please sign in to comment.