Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

name: build-and-persist-plugin-binary
Expand Down
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

changelog:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Backport Assistant Runner

on:
pull_request_target:
types:
- closed
- labeled

permissions:
contents: read

jobs:
backport:
permissions:
contents: none
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:v0.5.8
steps:
- name: Backport changes to targeted release branch
run: |
backport-assistant backport -gh-automerge
env:
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.\\w+)"
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/go-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ name: "Go Validate"
on:
push:
branches:
- 'main'
- "main"
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
get-go-version:
Expand All @@ -23,7 +24,7 @@ jobs:
go-version: ${{ steps.get-go-version.outputs.go-version }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: 'Determine Go version'
- name: "Determine Go version"
id: get-go-version
run: |
echo "Found Go $(cat .go-version)"
Expand All @@ -49,10 +50,12 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # v5.0.0
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v1.64.8
version: v2.12.2
only-new-issues: true
- name: Check goimports formatting
run: golangci-lint fmt --diff
check-fmt:
needs:
- get-go-version
Expand Down
3 changes: 1 addition & 2 deletions .go-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
1.23.0

1.25.10
159 changes: 54 additions & 105 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,125 +1,74 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2026
# SPDX-License-Identifier: MPL-2.0

issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`

exclude-rules:
# Exclude gosimple bool check
- linters:
- gosimple
text: "S(1002|1008|1021)"
# Exclude failing staticchecks for now
- linters:
- staticcheck
text: "SA(1006|1019|4006|4010|4017|5007|6005|9004):"
# Exclude lll issues for long lines with go:generate
- linters:
- lll
source: "^//go:generate "

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
version: "2"

linters:
disable-all: true
default: none
enable:
- errcheck
- goimports
- gosimple
- govet
- ineffassign
- staticcheck
- unconvert
- unused
fast: true
settings:
errcheck:
check-type-assertions: false
check-blank: false
exclude-functions:
- fmt:.*
- io/ioutil:^Read.*
- io:Close
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- staticcheck
text: S(1002|1008|1021)
- linters:
- staticcheck
text: "SA(1006|1019|4006|4010|4017|5007|6005|9004):"
- linters:
- lll
source: "^//go:generate "
- linters:
- errcheck
path: .*_test.go
paths:
- third_party$
- builtin$
- examples$
- .*\.hcl2spec\.go$

# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4

# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m

# exit code when at least one issue was found, default is 1
issues-exit-code: 1

# include test files or not, default is true
tests: true

# list of build tags, all linters use it. Default is empty list.
#build-tags:
# - mytag

# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
#skip-dirs:
# - src/external_libs
# - autogenerated_by_my_lib

# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true

# which files to skip: they will be analyzed, but issues from them
# won't be reported. Default value is empty list, but there is
# no need to include all autogenerated files, we confidently recognize
# autogenerated files. If it's not please let us know.
skip-files:
- ".*\\.hcl2spec\\.go$"
# - lib/bad.go

# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
# If invoked with -mod=readonly, the go command is disallowed from the implicit
# automatic updating of go.mod described above. Instead, it fails when any changes
# to go.mod are needed. This setting is most useful to check that go.mod does
# not need updates, such as in a continuous integration and testing system.
# If invoked with -mod=vendor, the go command assumes that the vendor
# directory holds the correct copies of dependencies and ignores
# the dependency descriptions in go.mod.
# modules-download-mode: vendor


# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number

# print lines of code with issue, default is true
print-issued-lines: true

# print linter name in the end of issue text, default is true
print-linter-name: true

# make issues output unique by line, default is true
uniq-by-line: true

formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true

# all available settings of specific linters
linters-settings:
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false

# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false

# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*,io:Close
issues:
max-issues-per-linter: 0
max-same-issues: 0

# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
#exclude: /path/to/file.txt
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
- .*\.hcl2spec\.go$
2 changes: 1 addition & 1 deletion .release/ci.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

schema = "2"
Expand Down
2 changes: 1 addition & 1 deletion .release/packer-plugin-vagrant-artifacts.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

schema = 1
Expand Down
2 changes: 1 addition & 1 deletion .release/release-metadata.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

url_source_repository = "https://github.com/hashicorp/packer-plugin-vagrant"
Expand Down
2 changes: 1 addition & 1 deletion .release/security-scan.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

binary {
Expand Down
2 changes: 1 addition & 1 deletion .web-docs/metadata.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0

# For full specification on the configuration of this file visit:
Expand Down
2 changes: 1 addition & 1 deletion .web-docs/scripts/compile-to-webdocs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2013, 2025
# SPDX-License-Identifier: MPL-2.0


Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 1.1.7 (May 25, 2026)

## What's Changed

### IMPROVEMENTS:
* Add new builder id for VMware [GH-151](https://github.com/hashicorp/packer-plugin-vagrant/pull/151)

### Other Changes
* Bump Go version to 1.25.10 [GH-153](https://github.com/hashicorp/packer-plugin-vagrant/pull/153)
* Bump `github.com/hashicorp/packer-plugin-sdk` to v0.6.9 [GH-153](https://github.com/hashicorp/packer-plugin-vagrant/pull/153)
* Migrate golangci-lint to v2 and refresh dependencies [GH-153](https://github.com/hashicorp/packer-plugin-vagrant/pull/153) [GH-146](https://github.com/hashicorp/packer-plugin-vagrant/pull/146)
* Add/Update Copyright Headers [GH-149](https://github.com/hashicorp/packer-plugin-vagrant/pull/149) [GH-144](https://github.com/hashicorp/packer-plugin-vagrant/pull/144)

## 1.1.6 (August 5, 2025)

### IMPROVEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2021 HashiCorp, Inc.
Copyright IBM Corp. 2013, 2026

Mozilla Public License Version 2.0
==================================
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Then, run [`packer init`](https://developer.hashicorp.com/packer/docs/commands/i
packer {
required_plugins {
vagrant = {
version = ">= 1.1.6"
version = ">= 1.1.7"
source = "github.com/hashicorp/vagrant"
}
}
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/artifact.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/artifact_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/builder.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

//go:generate packer-sdc struct-markdown
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/builder_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/driver.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/driver_2_2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/driver_mock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/ssh.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/step_add_box.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/step_add_box_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
2 changes: 1 addition & 1 deletion builder/vagrant/step_create_vagrantfile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: MPL-2.0

package vagrant
Expand Down
Loading
Loading