4 ms·
Why do you need any shell "tricks"? Wouldn't this work? go run github.com/dolmen-go/goeval@v1 - < file.go
by michaelmior 2y ago
Why do you need any shell "tricks"? Wouldn't this work?
go run github.com/dolmen-go/goeval@v1 - < file.go
- mdaniel 2y agoI believe the difference is that in your example file.go needs to live in the repo (or created by a previous step:) whereas reading from stdin allows writing the logic in the .yaml itself, and thus is subject to uses: or other reuse tricks
- michaelmior 2y agoSure. But the previous post seemed to suggest that tricks were needed because goeval doesn't support reading from files.
- dolmen 1y agoI'm trying to use goeval as a GitHub workflow shell, as this is the subject of the blog post. GitHub requreq {0} to be present on the shell line.