Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/hashicorp/go-getter from 1.7.0 to 1.7.1 #278

Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.52.2
args: --timeout=3m
2 changes: 1 addition & 1 deletion builder/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (a *Artifact) String() string {
}

// State N/A
func (a *Artifact) State(name string) interface{} {
func (a *Artifact) State(_ string) interface{} {
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion builder/step_chroot_provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ func (s *StepChrootProvision) Run(ctx context.Context, state multistep.StateBag)
}

// Cleanup after step execution
func (s *StepChrootProvision) Cleanup(state multistep.StateBag) {}
func (s *StepChrootProvision) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_compress_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (s *StepCompressArtifact) getSrcs() ([]string, error) {
}

// Run the step
func (s *StepCompressArtifact) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepCompressArtifact) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
s.prepare(state)
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)
Expand Down Expand Up @@ -131,4 +131,4 @@ func (s *StepCompressArtifact) Run(ctx context.Context, state multistep.StateBag
}

// Cleanup after step execution
func (s *StepCompressArtifact) Cleanup(state multistep.StateBag) {}
func (s *StepCompressArtifact) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_create_base_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type StepCreateBaseImage struct{}

// Run the step
func (s *StepCreateBaseImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepCreateBaseImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
config := state.Get("config").(*Config)
ui := state.Get("ui").(packer.Ui)

Expand All @@ -37,4 +37,4 @@ func (s *StepCreateBaseImage) Run(ctx context.Context, state multistep.StateBag)
}

// Cleanup after step execution
func (s *StepCreateBaseImage) Cleanup(state multistep.StateBag) {}
func (s *StepCreateBaseImage) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_expand_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func findExpandablePartition(config *Config) (int, error) {
}

// Run the step
func (s *StepExpandPartition) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepExpandPartition) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)

Expand All @@ -65,4 +65,4 @@ func (s *StepExpandPartition) Run(ctx context.Context, state multistep.StateBag)
}

// Cleanup after step execution
func (s *StepExpandPartition) Cleanup(state multistep.StateBag) {}
func (s *StepExpandPartition) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_extract_and_copy_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type StepExtractAndCopyImage struct {
}

// Run the step
func (s *StepExtractAndCopyImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepExtractAndCopyImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)
archivePath := state.Get(s.FromKey).(string)
Expand Down Expand Up @@ -103,4 +103,4 @@ func (s *StepExtractAndCopyImage) Run(ctx context.Context, state multistep.State
}

// Cleanup after step execution
func (s *StepExtractAndCopyImage) Cleanup(state multistep.StateBag) {}
func (s *StepExtractAndCopyImage) Cleanup(_ multistep.StateBag) {}
2 changes: 1 addition & 1 deletion builder/step_mount_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type StepMountImage struct {
}

// Run the step
func (s *StepMountImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepMountImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
config := state.Get("config").(*Config)
ui := state.Get("ui").(packer.Ui)

Expand Down
4 changes: 2 additions & 2 deletions builder/step_partition_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func partitionDOS(ui packer.Ui, config *Config) multistep.StepAction {
type StepPartitionImage struct{}

// Run the step
func (s *StepPartitionImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepPartitionImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)
zeroCmd := []string{"sgdisk", "-Z", config.ImageConfig.ImagePath}
Expand All @@ -135,4 +135,4 @@ func (s *StepPartitionImage) Run(ctx context.Context, state multistep.StateBag)
}

// Cleanup after step execution
func (s *StepPartitionImage) Cleanup(state multistep.StateBag) {}
func (s *StepPartitionImage) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_populate_filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type StepPopulateFilesystem struct {
}

// Run the step
func (s *StepPopulateFilesystem) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepPopulateFilesystem) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)

Expand Down Expand Up @@ -59,4 +59,4 @@ func (s *StepPopulateFilesystem) Run(ctx context.Context, state multistep.StateB
}

// Cleanup after step execution
func (s *StepPopulateFilesystem) Cleanup(state multistep.StateBag) {}
func (s *StepPopulateFilesystem) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_resize_partition_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type StepResizePartitionFs struct {
}

// Run the step
func (s *StepResizePartitionFs) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepResizePartitionFs) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
var (
ui = state.Get("ui").(packer.Ui)

Expand All @@ -36,4 +36,4 @@ func (s *StepResizePartitionFs) Run(ctx context.Context, state multistep.StateBa
}

// Cleanup after step execution
func (s *StepResizePartitionFs) Cleanup(state multistep.StateBag) {}
func (s *StepResizePartitionFs) Cleanup(_ multistep.StateBag) {}
4 changes: 2 additions & 2 deletions builder/step_resize_qemu_img.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type StepResizeQemuImage struct {
}

// Run the step
func (s *StepResizeQemuImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepResizeQemuImage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)

Expand All @@ -30,4 +30,4 @@ func (s *StepResizeQemuImage) Run(ctx context.Context, state multistep.StateBag)
}

// Cleanup after step execution
func (s *StepResizeQemuImage) Cleanup(state multistep.StateBag) {}
func (s *StepResizeQemuImage) Cleanup(_ multistep.StateBag) {}
2 changes: 1 addition & 1 deletion builder/step_setup_chroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type StepSetupChroot struct {
}

// Run the step
func (s *StepSetupChroot) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepSetupChroot) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
config := state.Get("config").(*Config)
ui := state.Get("ui").(packer.Ui)

Expand Down
4 changes: 2 additions & 2 deletions builder/step_setup_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func replaceVars(l []string, config *Config, imageMountpoint string) []string {
}

// Run the step
func (s *StepSetupExtra) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepSetupExtra) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*Config)
imageMountpoint := state.Get(s.FromKey).(string)
Expand All @@ -53,4 +53,4 @@ func (s *StepSetupExtra) Run(ctx context.Context, state multistep.StateBag) mult
}

// Cleanup after step execution
func (s *StepSetupExtra) Cleanup(state multistep.StateBag) {}
func (s *StepSetupExtra) Cleanup(_ multistep.StateBag) {}
2 changes: 1 addition & 1 deletion builder/step_setup_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type StepSetupQemu struct {
}

// Run the step
func (s *StepSetupQemu) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
func (s *StepSetupQemu) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
config := state.Get("config").(*Config)
ui := state.Get("ui").(packer.Ui)

Expand Down
2 changes: 1 addition & 1 deletion config/image_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type ImageConfig struct {
}

// Prepare image configuration
func (c *ImageConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs []error) {
func (c *ImageConfig) Prepare(_ *interpolate.Context) (warnings []string, errs []error) {
if c.ImageSize != "" && c.ImageSizeBytes != 0 {
errs = append(errs, errors.New("only one of image_size or image_size_bytes can be specified"))
}
Expand Down
2 changes: 1 addition & 1 deletion config/qemu_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type QemuConfig struct {
}

// Prepare qemu configuration
func (q *QemuConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs []error) {
func (q *QemuConfig) Prepare(_ *interpolate.Context) (warnings []string, errs []error) {
// those paths are usually the same
if q.QemuBinaryDestinationPath == "" {
q.QemuBinaryDestinationPath = q.QemuBinarySourcePath
Expand Down
2 changes: 1 addition & 1 deletion config/remote_file_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type RemoteFileConfig struct {
}

// Prepare remote file config
func (c *RemoteFileConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs []error) {
func (c *RemoteFileConfig) Prepare(_ *interpolate.Context) (warnings []string, errs []error) {
if len(c.FileUrls) == 0 {
errs = append(
errs,
Expand Down
95 changes: 88 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,35 +1,116 @@
module github.com/mkaczanowski/packer-builder-arm

go 1.20

require (
github.com/dustin/go-humanize v1.0.1
github.com/hashicorp/go-getter v1.7.1
github.com/hashicorp/hcl/v2 v2.14.1
github.com/hashicorp/packer-plugin-sdk v0.4.0
github.com/mholt/archiver v3.1.1+incompatible
github.com/zclconf/go-cty v1.10.0
)

require (
cloud.google.com/go v0.105.0 // indirect
cloud.google.com/go/compute v1.12.1 // indirect
cloud.google.com/go/compute/metadata v0.1.1 // indirect
cloud.google.com/go/iam v0.6.0 // indirect
cloud.google.com/go/storage v1.27.0 // indirect
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
github.com/ChrisTrenkamp/goxpath v0.0.0-20210404020558-97928f7e12b6 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-metrics v0.3.11 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.44.122 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/dustin/go-humanize v1.0.1
github.com/dylanmei/iso8601 v0.1.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/martian/v3 v3.3.2 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
github.com/googleapis/gax-go/v2 v2.6.0 // indirect
github.com/hashicorp/consul/api v1.12.0 // indirect
github.com/hashicorp/go-getter v1.7.0
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-getter/gcs/v2 v2.2.0 // indirect
github.com/hashicorp/go-getter/s3/v2 v2.2.0 // indirect
github.com/hashicorp/go-getter/v2 v2.2.0 // indirect
github.com/hashicorp/go-hclog v1.2.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.4 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.4 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/hcl/v2 v2.14.1
github.com/hashicorp/packer-plugin-sdk v0.4.0
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/serf v0.9.8 // indirect
github.com/hashicorp/vault/api v1.5.0 // indirect
github.com/hashicorp/vault/sdk v0.4.1 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
github.com/masterzen/winrm v0.0.0-20220513085036-69f69afcd9e9 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mholt/archiver v3.1.1+incompatible
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-fs v0.0.0-20180402235330-b7b9ca407fff // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/iochan v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/nwaples/rardecode v1.1.3 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/packer-community/winrmcp v0.0.0-20180921211025-c76d91c1e7db // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/sftp v1.13.4 // indirect
github.com/ugorji/go v1.2.7 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
github.com/zclconf/go-cty v1.10.0
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.101.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c // indirect
google.golang.org/grpc v1.50.1 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
)
Loading