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
75b2fab7
Commit
75b2fab7
authored
Jun 18, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/build, command/validate: Setup proper components to avoid nil
parent
0ac538dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
command/build/command.go
command/build/command.go
+4
-3
command/validate/commang.go
command/validate/commang.go
+4
-3
packer/rpc/post_processor.go
packer/rpc/post_processor.go
+2
-2
No files found.
command/build/command.go
View file @
75b2fab7
...
@@ -63,9 +63,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
...
@@ -63,9 +63,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds
// The component finder for our builds
components
:=
&
packer
.
ComponentFinder
{
components
:=
&
packer
.
ComponentFinder
{
Builder
:
env
.
Builder
,
Builder
:
env
.
Builder
,
Hook
:
env
.
Hook
,
Hook
:
env
.
Hook
,
Provisioner
:
env
.
Provisioner
,
PostProcessor
:
env
.
PostProcessor
,
Provisioner
:
env
.
Provisioner
,
}
}
// Go through each builder and compile the builds that we care about
// Go through each builder and compile the builds that we care about
...
...
command/validate/commang.go
View file @
75b2fab7
...
@@ -56,9 +56,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
...
@@ -56,9 +56,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// The component finder for our builds
// The component finder for our builds
components
:=
&
packer
.
ComponentFinder
{
components
:=
&
packer
.
ComponentFinder
{
Builder
:
env
.
Builder
,
Builder
:
env
.
Builder
,
Hook
:
env
.
Hook
,
Hook
:
env
.
Hook
,
Provisioner
:
env
.
Provisioner
,
PostProcessor
:
env
.
PostProcessor
,
Provisioner
:
env
.
Provisioner
,
}
}
// Otherwise, get all the builds
// Otherwise, get all the builds
...
...
packer/rpc/post_processor.go
View file @
75b2fab7
...
@@ -18,7 +18,7 @@ type PostProcessorServer struct {
...
@@ -18,7 +18,7 @@ type PostProcessorServer struct {
}
}
type
PostProcessorProcessResponse
struct
{
type
PostProcessorProcessResponse
struct
{
Err
error
Err
error
RPCAddress
string
RPCAddress
string
}
}
...
@@ -83,7 +83,7 @@ func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorPr
...
@@ -83,7 +83,7 @@ func (p *PostProcessorServer) PostProcess(address string, reply *PostProcessorPr
}
}
*
reply
=
PostProcessorProcessResponse
{
*
reply
=
PostProcessorProcessResponse
{
Err
:
err
,
Err
:
err
,
RPCAddress
:
responseAddress
,
RPCAddress
:
responseAddress
,
}
}
...
...
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