Skip to content

Commit

Permalink
Fix: Parallels macvm support
Browse files Browse the repository at this point in the history
Make the post-processor able to create vagrant box from M1 macOS images.
  • Loading branch information
sztivt authored and lbajolet-hashicorp committed Jan 9, 2024
1 parent b65e0c6 commit df8fc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-processor/vagrant/parallels.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (p *ParallelsProvider) Process(ui packersdk.Ui, artifact packersdk.Artifact
}

tmpPath := filepath.ToSlash(path)
pathRe := regexp.MustCompile(`^(.+?)([^/]+\.pvm/.+?)$`)
pathRe := regexp.MustCompile(`^(.+?)([^/]+\.(pvm|macvm)/.+?)$`)
matches := pathRe.FindStringSubmatch(tmpPath)
var pvmPath string
if matches != nil {
Expand Down

0 comments on commit df8fc09

Please sign in to comment.