-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Handle file paths base on target platform #3908
Handle file paths base on target platform #3908
Commits on Jul 3, 2023
-
Handle file paths base on target platform
This change properly handles paths on different platforms. In short, this change checks the target platform we're building an image for and applies normalization steps to make sure the file paths are valid. This makes buildkit properly handle paths on both *nix systems and on Windows. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 686a84b - Browse repository at this point
Copy the full SHA 686a84bView commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 236d00b - Browse repository at this point
Copy the full SHA 236d00bView commit details -
Rename variable, remove superfluous check
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a503ae - Browse repository at this point
Copy the full SHA 7a503aeView commit details -
Remove nil pointer check and extra NormalizePath
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b29ec0b - Browse repository at this point
Copy the full SHA b29ec0bView commit details -
Add nil pointer check in dispatchWorkdir
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fbbaa39 - Browse repository at this point
Copy the full SHA fbbaa39View commit details -
* Set default platform for scratch images * Set default platform constraint for FileOps if none is set via ConstraintOpt. * Explicitly set platform ConstraintOpt in dockerfile frontend based on dispatch state platform. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0519491 - Browse repository at this point
Copy the full SHA 0519491View commit details -
Ensure we use proper path separators
In dockerfile2llb we ensure we use proper path separators before we send them to LLB. In LLB we default to linux/amd64 if no constraints are set by the caller. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for edae0c6 - Browse repository at this point
Copy the full SHA edae0c6View commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d425c7c - Browse repository at this point
Copy the full SHA d425c7cView commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 45b4617 - Browse repository at this point
Copy the full SHA 45b4617View commit details -
Revert most changes to client/llb
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 805b993 - Browse repository at this point
Copy the full SHA 805b993View commit details -
Use system.ToSlash() instead of filepath.ToSlash()
When running on Linux, filepath.ToSlash() is not suitable to convert paths containing Windows path delimiter to Unix delimiters. To enable this, we export system.ToSlash() that takes a platform flag, based on which we use the proper file path separator, regardless of the platform we run on. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 69f2c06 - Browse repository at this point
Copy the full SHA 69f2c06View commit details
Commits on Jul 10, 2023
-
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f1657ec - Browse repository at this point
Copy the full SHA f1657ecView commit details