-
Notifications
You must be signed in to change notification settings - Fork 50
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
ibazel run doesn't work, beginning with v2.1.0 #143
Comments
As a workaround, it may be helpful to use the custom launcher script option: until we resolve this (which appears to be a variant of #110 as you mentioned). |
Unfortunately, this failure seems to happen in the script that launches the (possibly custom) launcher script. This is the source of the script that's failing (the rules_spring/springboot/springboot.bzl Lines 154 to 172 in 21aa5bc
I've worked around this by just downgrading to 2.0.0, so this isn't urgent. 🙂 Just something that ideally would be fixed so we can upgrade without losing ibazel. I'll take a stab at debugging it myself with a local clone of rules_spring, if I have time. |
I believe I found the problem. There's a newline before the shebang in the generated wrapper script: rules_spring/springboot/springboot.bzl Lines 248 to 249 in 71cf0f5
This change fixes it: -_bazelrun_script_template = """
-#!/bin/bash
+_bazelrun_script_template = """#!/bin/bash I'll try to open a PR soon, but won't be upset if someone beats me to it |
Hi team,
We have a Spring server built using bazel, and we use
ibazel
for local development.ibazel run //atlassian-embed
should run the Spring server and automatically restart when any of the source files change. This was working great on rules_spring 2.0.0, but after upgrading to 2.1.0 or higher,ibazel run
fails with these errors:(Where
[bazel-bin]
is the full path of thebazel-bin
dir.) Looking at the release notes for 2.1.0, I see some changes were made around the run script; I'll look into those and see if I can find a fix, but figured it'd be worth opening this anyway in case anyone else runs into this issue.The text was updated successfully, but these errors were encountered: