mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Run gofmt via python, easier to debug
This commit is contained in:
5
.github/workflows/ci.py
vendored
5
.github/workflows/ci.py
vendored
@@ -130,6 +130,11 @@ def main():
|
||||
package_kitty()
|
||||
elif action == 'test':
|
||||
test_kitty()
|
||||
elif action == 'gofmt':
|
||||
q = subprocess.check_output('gofmt -s -l tools version.go'.split())
|
||||
if q.strip():
|
||||
print(q.decode())
|
||||
raise SystemExit(1)
|
||||
else:
|
||||
raise SystemExit(f'Unknown action: {action}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user