-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #11989: Remove dependency on find #12167
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
Conversation
@michelou Do you have suggestions for removing the dependency on |
We could emit jars without the version number in the filename so we can refer to them with a fixed identifier. |
@liufengyun Let me start with two observations :
So the point is to choose if we want to adapt the bash scripts to yet another user environment or we decide to introduce a requirement about the user environment. Nevertheless I acknowledge the fact that people are working more and more with Docker images (which may provide very minimal sets of commands). Side note : IMO it would worth looking at other JVM based tools (Java, Kotlin, etc.) regarding the jar file organisation. Reminder : |
Thanks @michelou.
Yes, the directory is flat, which is a safe assumption in our case.
|
Another option may be something like this, which eliminates both the subshell and the dependency on an external command like find_lib () {
for lib in "$PROG_HOME"/lib/$1 ; do
if [[ -e "$lib" ]]; then
if [ -n "$CYGPATHCMD" ]; then
"$CYGPATHCMD" -am "$lib"
elif [[ $mingw || $msys ]]; then
echo "$lib" | sed 's|/|\\\\|g'
else
echo "$lib"
fi
return
fi
done
} |
Co-authored-by: Tom Grigg <tomegrigg@gmail.com>
On line 137, |
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.
Otherwise LGTM.
Co-authored-by: Stéphane Micheloud <stephane.micheloud@gmail.com> Co-authored-by: Tom Grigg <tomegrigg@gmail.com>
Fix #11989: Remove dependency on find