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

Compare with gorun #13

Closed
epage opened this issue Mar 11, 2022 · 4 comments
Closed

Compare with gorun #13

epage opened this issue Mar 11, 2022 · 4 comments

Comments

@epage
Copy link
Owner

epage commented Mar 11, 2022

https://github.com/erning/gorun/

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

Documemts a hack for when language doesn't support # comments

/// 2>/dev/null ; gorun "$0" "$@" ; exit $?

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

These features imply some things to investigate, particularly why is it important to replace the process?

avoid races between parallel executions of the same file
automatically clean up old compiled files that remain unused for some time (without races)
replace the process rather than using a child

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

Uses HEREDOCs for metadata

// go.mod >>>
// module github.com/a/b
// go 1.13
// require github.com/c/d v0.0.0-20200225084820-12345affa
// require mycompany.com/e/f v0.0.0-20200225084120-1849135
// <<< go.mod
//
// go.env >>>
// GOPRIVATE=mycompany.com
// GO111MODULE=on
// <<< go.env
//
// go.sum >>>
// github.com/c v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
// <<< go.sum

@epage
Copy link
Owner Author

epage commented Mar 15, 2022

GCs artifacts when not building

  • Seems like you'd want to do that when building, in parallel, since the user is less likely to notice

@epage epage closed this as completed Mar 15, 2022
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

1 participant