mirror of
https://github.com/moby/buildkit.git
synced 2026-08-05 23:30:22 +00:00
oci-executor: eval symlink for root
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
@@ -73,7 +73,10 @@ func New(opt Opt) (executor.Executor, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// TODO: check that root is not symlink to fail early
|
||||
root, err = filepath.EvalSymlinks(root)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
runtime := &runc.Runc{
|
||||
Command: cmd,
|
||||
|
||||
Reference in New Issue
Block a user