Skip to content

Commit 2e81740

Browse files
authored
Update compiler.go
1 parent 72c44e6 commit 2e81740

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

installation/pkg/compiler.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,20 @@ func (c *compiler) Compile(pkg birelpkg.Compilable) (bistatepkg.CompiledPackageR
9797
return record, isCompiledPackage, bosherr.Errorf("Packaging script for package '%s' not found", pkg.Name())
9898
}
9999

100-
cmd := boshsys.Command{
101-
Name: "bash",
102-
Args: []string{"-x", "packaging"},
103-
Env: map[string]string{
104-
"BOSH_COMPILE_TARGET": packageSrcDir,
105-
"BOSH_INSTALL_TARGET": installDir,
106-
"BOSH_PACKAGE_NAME": pkg.Name(),
107-
"BOSH_PACKAGES_DIR": c.packagesDir,
108-
"PATH": os.Getenv("PATH"),
109-
"LD_LIBRARY_PATH": os.Getenv("LD_LIBRARY_PATH"),
110-
},
111-
UseIsolatedEnv: c.useIsolatedEnv,
112-
WorkingDir: packageSrcDir,
113-
}
100+
cmd := boshsys.Command{
101+
Name: "bash",
102+
Args: []string{"-x", "packaging"},
103+
Env: map[string]string{
104+
"BOSH_COMPILE_TARGET": packageSrcDir,
105+
"BOSH_INSTALL_TARGET": installDir,
106+
"BOSH_PACKAGE_NAME": pkg.Name(),
107+
"BOSH_PACKAGES_DIR": c.packagesDir,
108+
"PATH": os.Getenv("PATH"),
109+
"LD_LIBRARY_PATH": os.Getenv("LD_LIBRARY_PATH"),
110+
},
111+
UseIsolatedEnv: c.useIsolatedEnv,
112+
WorkingDir: packageSrcDir,
113+
}
114114

115115
_, _, _, err = c.runner.RunComplexCommand(cmd)
116116
if err != nil {

0 commit comments

Comments
 (0)