-
Notifications
You must be signed in to change notification settings - Fork 343
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 realpath support to pkg #7981
Conversation
r? @ntheanh201, @limited |
I still see that issue
|
Thanks! Removed the |
I still saw numerous failures on this
|
your new realpath of Docker compose is different than the old realpath, and I think that cause this problem:
|
pkg
Outdated
@@ -247,7 +262,7 @@ while (( "$#" )); do | |||
# where <service> is the name of the specific service to be chained. The file may be a symlink to another | |||
# compose file, in which case the symlink will be followed before it is processed. | |||
if [ -e "$COMPOSE_FILE.$1" ] ; then | |||
$SELF -f $(realpath -e "$COMPOSE_FILE.$1") $([ "$verbose" == 0 ] || echo "-v") $([ "$quiet" == 0 ] || echo "-q") $([ "$debug" == 0 ] || echo "-d") $([ "$build" == 0 ] || echo "-b") $("${COMPOSECMD[@]}" -f $(realpath -e "$COMPOSE_FILE.$1") config --services) | |||
$SELF -f $(realpath "$COMPOSE_FILE.$1") $([ "$verbose" == 0 ] || echo "-v") $([ "$quiet" == 0 ] || echo "-q") $([ "$debug" == 0 ] || echo "-d") $([ "$build" == 0 ] || echo "-b") $("${COMPOSECMD[@]}" -f $(realpath "$COMPOSE_FILE.$1") config --services) |
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.
I see the different with the result of realpath $COMPOSE_FILE.$1 (./infrastructure/docker/build/docker-compose-opt.yml.ats) when you add realpath function is:
/Users/ntheanh201/Workspace/apache/trafficcontrol/infrastructure/docker/build/docker-compose-opt.yml.ats
vs. the result of realpath in master branch:
/Users/ntheanh201/Workspace/apache/trafficcontrol/traffic_server/_tsb/docker-compose.yml
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.
This should be fixed in 7d9273d.
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.
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.
Fixed it with zrhoffman#124
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.
I see if you still use
-e
argument with realpath, it won't work
Going back to realpath
and looping through possible realpath
executables in the path to find GNU realpath
in ff3c456.
The `pkg` script (along with our build scripts) makes use of `realpath`. But unlike the build scripts, `pkg` does not have a backup `realpath` function if the host OS does not have `realpath`. apache#7981 adds a backup `realpath` function to the `pkg` script.
The `pkg` script (along with our build scripts) makes use of `realpath`. But unlike the build scripts, `pkg` does not have a backup `realpath` function if the host OS does not have `realpath`. apache#7981 adds a backup `realpath` function to the `pkg` script.
The `pkg` script (along with our build scripts) makes use of `realpath`. But unlike the build scripts, `pkg` does not have a backup `realpath` function if the host OS does not have `realpath`. apache#7981 adds a backup `realpath` function to the `pkg` script.
4178b59
to
61935e1
Compare
6a4a68b
to
c6e6589
Compare
If realpath -e oes not work, the `realpath` binary is probably BSD realpath.
LGTM |
Thanks for reviewing! :) |
The
pkg
script (along with our build scripts) makes use ofrealpath
. But as noticed in #7958,pkg
does not have a backuprealpath
function if the host OS does not haverealpath
. #7981 adds a backuprealpath
function to thepkg
script.Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Try building ATS or Traffic Portal v2
./pkg vbo ats on macOS or another platform with
realpath` at least temporarily removedPR submission checklist