|
|
|
|
|
by datashaman
2114 days ago
|
|
One of the beauties of bash is that it's _not_ compiled. Can you read the Go source code from a Go binary? Is the algorithm transparent to the user? How do you jump back to work on a binary? You have to keep the source code somewhere else (probably in a repo somewhere); now you have an application instead of a script. |
|
You should be doing that for scripts as well! Far too often I've seen problems arise when a team depends on a process but its just a shell script run by cron from the home directory of the guy who's on vacation.
You could also do `go run main.go` if you want to be close to the source. The Gitlab Runner repo has a "script" run like that[1].
[1] https://gitlab.com/gitlab-org/gitlab-runner/-/blob/master/Ma...