Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
d4080244
Commit
d4080244
authored
Oct 27, 2014
by
Israel Shirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolves issue where docker communicator mishandled symlinks by treating them as files
parent
ec216a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
builder/docker/communicator.go
builder/docker/communicator.go
+10
-0
No files found.
builder/docker/communicator.go
View file @
d4080244
...
...
@@ -117,6 +117,16 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
return
os
.
MkdirAll
(
hostpath
,
info
.
Mode
())
}
if
info
.
Mode
()
&
os
.
ModeSymlink
==
os
.
ModeSymlink
{
dest
,
err
:=
os
.
Readlink
(
path
)
if
err
!=
nil
{
return
err
}
return
os
.
Symlink
(
dest
,
hostpath
)
}
// It is a file, copy it over, including mode.
src
,
err
:=
os
.
Open
(
path
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment