-
Notifications
You must be signed in to change notification settings - Fork 351
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
| # 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
-eargument 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
pkgscript (along with our build scripts) makes use ofrealpath. But as noticed in #7958,pkgdoes not have a backuprealpathfunction if the host OS does not haverealpath. #7981 adds a backuprealpathfunction to thepkgscript.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 withrealpath` at least temporarily removedPR submission checklist