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

Add skip_run so build only works on windows #494

Closed
wants to merge 3 commits into from

Conversation

joeyak
Copy link

@joeyak joeyak commented Nov 4, 2023

Since there is no /usr/bin/true for windows or an executable close to it I added a flag to skip the run step. I originally followed #365 by creating an empty go program, but then realized I would have to add true.exe to my repo.

@zoop-btc
Copy link

I'm in need of this too since I use nixos but other devs don't the path to "true" won't be the same.

@joeyak
Copy link
Author

joeyak commented Dec 16, 2024

@praxxus11 I've fixed the merge conflicts

@xiantang
Copy link
Collaborator

xiantang commented Mar 5, 2025

[build]
  cmd = "go build -o ./tmp/main ."
  bin = "echo"  # Will work on both Windows and Unix-based systems

can u try this?

@joeyak
Copy link
Author

joeyak commented Mar 12, 2025

It doesn't look clean, but it does work in the end
image

@joeyak joeyak closed this Mar 12, 2025
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

Successfully merging this pull request may close these issues.

4 participants