-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow for tildes on exec path if they aren't the start of the path #39
Comments
This hasn’t been an issue to date. Why is it an issue now? |
I don't remember the full context at this point, but I think it was because I was looking at Skylab managing deployd, which would then change the deployd java binary's (symlinked) exec path to have tildes in it. Evidently we were able to get things off the ground without this PR, so we must have found a workaround -- probably by using an absolute path with symlink resolution? -- so probably good to close out here. @jlong8 to sanity check my statement, since she's evidently hitting something related? |
Caught up with some context, and seems like there was some sort of regression with the symlink resolution -- reopening to continue discussion, since it seems like it'd be nice to have this regardless of the situation? |
sorry, could you sketch out a dummy example of the directory tree? |
The new service home path in Skylab-managed deployd is something like Our workaround was that in a script to start deployd when it was stopped, we used |
EDIT: whoops, it looks like @jlong8 already posted a more concise writeup of what I had here. Sure -- I'm not sure if it's safe to post the exact details / paths on external github, so changing some details around. We run go-java-launcher from a Previously, We're now using a platform management tool that installs There is a workaround -- We've been using this workaround, but it recently failed us. There's a PR to fix that, but it'd be nice if the go-java-launcher worked with the tildes in the first place. Summary of relevant paths:
|
Ok, instead of running things with the fully resolved path, can we set the execution environment that pokes go-java-launcher to have a base directory, instead?
|
We use tildes in install paths (
/foo/bar/baz/group~value~id
). This doesn't jive well with the current regex: https://github.com/palantir/go-java-launcher/blob/develop/launchlib/launcher.go#L110 when the providedJAVA_HOME
is a subdirectory of that install path.Request is to allow tildes if they aren't at the beginning of the path (AKA won't resolve to the home directory).
The text was updated successfully, but these errors were encountered: