Skip to content

feat: use os.Executable() instead of hardcoding binary name

Gonzalo Servat requested to merge discover-executable-path into main

What

Discover path to executable instead of hardcoding runwayctl.

Why

This helps when running runwayctl locally (while doing dev work) as it will always expect runwayctl to be in the path, and locally it's not (at least for me). Using os.Executable() means that go run main.go will use the temporarily built binary and work as expected.

Merge request reports