-
Notifications
You must be signed in to change notification settings - Fork 179
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 apply_cmd_bat to Tiltfile for Windows #155
Conversation
- prevents errors due to default `> /dev/null` on windows by replacing it with windows-compatible `> NUL` - From tilt docs: command_bat ( Union [ str , List [ str ]]) – If non-empty and on Windows, takes precedence over command . Ignored on other platforms. If a string, executed as a Windows batch command executed with cmd /S /C ; if a list, will be passed to the operating system as program name and args.
Here's a quick demo to show error resolution: apply_cmd_bat_demo.mp4 |
alternatively to removing output command env var, create 2: one each for cmd and default. Either way, use (or non use) should be consistent |
Addressed in b0ed75f -- how does that look @ccheetham? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
weatherforecast-steeltoe/Tiltfile
Outdated
" --build-env BP_DEBUG_ENABLED=true" + | ||
" --namespace " + NAMESPACE + | ||
" --yes " + | ||
" > NUL " + # windows-compatible "output to null" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" > NUL " + # windows-compatible "output to null" | |
" > NUL " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also remove OUTPUT_TO_NULL_COMMAND
declaration at line 4
@@ -14,6 +14,14 @@ k8s_custom_deploy( | |||
" --yes " + | |||
OUTPUT_TO_NULL_COMMAND + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OUTPUT_TO_NULL_COMMAND + | |
" > /dev/null " + |
Now that |
closing based on latest comment |
fixes #149 (thanks @vrabbi for the solution!)
Prevents errors due to default
> /dev/null
on windows by replacing it with windows-compatible> NUL
From tilt docs: