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
10be7e27
Commit
10be7e27
authored
Aug 11, 2014
by
Mikhail Zholobov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/parallels: Added platform check
parent
9ad2b986
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
builder/parallels/common/driver.go
builder/parallels/common/driver.go
+5
-0
No files found.
builder/parallels/common/driver.go
View file @
10be7e27
...
@@ -45,6 +45,11 @@ type Driver interface {
...
@@ -45,6 +45,11 @@ type Driver interface {
func
NewDriver
()
(
Driver
,
error
)
{
func
NewDriver
()
(
Driver
,
error
)
{
var
prlctlPath
string
var
prlctlPath
string
if
runtime
.
GOOS
!=
"darwin"
{
return
nil
,
fmt
.
Errorf
(
"Parallels builder works only on
\"
darwin
\"
platform!"
)
}
if
prlctlPath
==
""
{
if
prlctlPath
==
""
{
var
err
error
var
err
error
prlctlPath
,
err
=
exec
.
LookPath
(
"prlctl"
)
prlctlPath
,
err
=
exec
.
LookPath
(
"prlctl"
)
...
...
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