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
c1cfd1da
Commit
c1cfd1da
authored
May 08, 2014
by
Rickard von Essen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1145 from jsoriano/fix-env-order-lang-c
Force LANG=C before appending rest of environment
parents
a719c83d
32bb7457
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
builder/amazon/chroot/communicator.go
builder/amazon/chroot/communicator.go
+1
-1
builder/parallels/iso/host_ip_ifconfig.go
builder/parallels/iso/host_ip_ifconfig.go
+1
-2
builder/vmware/iso/host_ip_ifconfig.go
builder/vmware/iso/host_ip_ifconfig.go
+1
-2
No files found.
builder/amazon/chroot/communicator.go
View file @
c1cfd1da
...
...
@@ -89,8 +89,8 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
var
stderr
bytes
.
Buffer
cmd
:=
ShellCommand
(
cpCmd
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
cmd
.
Env
=
append
(
cmd
.
Env
,
"LANG=C"
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
cmd
.
Stderr
=
&
stderr
err
=
cmd
.
Run
()
if
err
==
nil
{
...
...
builder/parallels/iso/host_ip_ifconfig.go
View file @
c1cfd1da
...
...
@@ -34,11 +34,10 @@ func (f *IfconfigIPFinder) HostIP() (string, error) {
stdout
:=
new
(
bytes
.
Buffer
)
cmd
:=
exec
.
Command
(
ifconfigPath
,
device
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
// Force LANG=C so that the output is what we expect it to be
// despite the locale.
cmd
.
Env
=
append
(
cmd
.
Env
,
"LANG=C"
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
cmd
.
Stdout
=
stdout
cmd
.
Stderr
=
new
(
bytes
.
Buffer
)
...
...
builder/vmware/iso/host_ip_ifconfig.go
View file @
c1cfd1da
...
...
@@ -33,11 +33,10 @@ func (f *IfconfigIPFinder) HostIP() (string, error) {
stdout
:=
new
(
bytes
.
Buffer
)
cmd
:=
exec
.
Command
(
ifconfigPath
,
f
.
Device
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
// Force LANG=C so that the output is what we expect it to be
// despite the locale.
cmd
.
Env
=
append
(
cmd
.
Env
,
"LANG=C"
)
cmd
.
Env
=
append
(
cmd
.
Env
,
os
.
Environ
()
...
)
cmd
.
Stdout
=
stdout
cmd
.
Stderr
=
new
(
bytes
.
Buffer
)
...
...
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