-
Notifications
You must be signed in to change notification settings - Fork 268
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
Fixing build regression [PATHS] #887
Conversation
To reiterate my question from #871 (comment):
|
I found a couple. Fixed em:
|
@seanmorris nice! Just to make sure – did you confirm the fix works? I see the testing instructions don't mention any |
I guess I assumed that it was handled by |
@adamziel This just inspired a much simpler fix for the Bison regression: #892 |
It sounds like we made a mistake earlier when creating this Dockerfile by referencing files outside of the directory in which we built the image. Is that right? And this fix is updating those paths so that they properly refer to the base directory itself? And the reason we didn't notice this before is because older Docker versions normalize the path as if the root directory were the CWD in which the image is built, so that If so, it seems like this is more of a universal fix and should work in all versions of Docker. |
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 ran a check for COPY ../
and found no more references than those listed here.
I'm not entirely sure how we ended up in this situation. It could have been files that were moved from one place to another, paths that were updated erroneously, or any number of other small oversights. I can pour over the git history if need be, but in the end, it was the fact that newer versions of Docker will ignore the leading |
Thanks for merging. My question mostly was about the PR and commit descriptions, since this particularly issue doesn't seem so much like a Docker compatibility issue but rather a fix to a mistake we made in the past. |
What is this PR doing?
This corrects some paths in the docker file used to copy libraries into the build image.
What problem is it solving?
Newer versions of Docker will ignore leading
../
that lead outside of the build context, but older versions will throw an error in that case.How is the problem addressed?
This removes the extra
../
at the start of the paths in question. Newer versions of docker will ignore../
s that lead outside of the build context, but older versions will throw an error. The following paths will work on later versions but fail on earlier ones:Testing Instructions
Checkout the branch and pull dependencies:
Build the libraries:
In a new terminal, build PHP 7.4 - 8.3: (PHP <=7.3 is fixed in #871)
Ensure the build works:
Navigate to the following URLs: