Skip to content

Commit dabde10

Browse files
sanyaraj2424dependabot[bot]sanyaraj2424
authored
build(deps): bump github.com/hashicorp/packer-plugin-sdk (#232)
* build(deps): bump github.com/hashicorp/packer-plugin-sdk Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.6.4 to 0.6.9. - [Release notes](https://github.com/hashicorp/packer-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/packer-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](hashicorp/packer-plugin-sdk@v0.6.4...v0.6.9) --- updated-dependencies: - dependency-name: github.com/hashicorp/packer-plugin-sdk dependency-version: 0.6.9 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * go version fix * golangci-lint version upgrade * lint fix * update golangci-lint action to only report new issues --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sanyaraj2424 <sanya@hashicorp.com>
1 parent 7019c6f commit dabde10

5 files changed

Lines changed: 107 additions & 142 deletions

File tree

.github/workflows/go-validate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
runs-on: ubuntu-latest
4646
name: Lint check
4747
steps:
48-
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
49-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
48+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
5050
with:
5151
go-version: ${{ needs.get-go-version.outputs.go-version }}
52-
- uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # v5.0.0
52+
- uses: golangci/golangci-lint-action@db582008a42febd596419635a5abc9d9815daa9c # v9.2.1
5353
with:
54-
version: v1.64.8
54+
version: v2.10.1
5555
only-new-issues: true
5656
check-fmt:
5757
needs:

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.24.12
1+
1.25.10
22

.golangci.yml

Lines changed: 32 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,47 @@
11
# Copyright IBM Corp. 2013, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

4-
issues:
5-
# List of regexps of issue texts to exclude, empty list by default.
6-
# But independently from this option we use default exclude patterns,
7-
# it can be disabled by `exclude-use-default: false`. To list all
8-
# excluded by default patterns execute `golangci-lint run --help`
4+
version: "2"
95

10-
exclude-rules:
11-
# Exclude gosimple bool check
12-
- linters:
13-
- gosimple
14-
text: "S(1002|1008|1021)"
15-
# Exclude failing staticchecks for now
16-
- linters:
17-
- staticcheck
18-
text: "SA(1006|1019|4006|4010|4017|5007|6005|9004):"
19-
# Exclude lll issues for long lines with go:generate
20-
- linters:
21-
- lll
22-
source: "^//go:generate "
23-
- linters:
24-
- errcheck
25-
path: ".*_test.go"
6+
run:
7+
concurrency: 4
8+
issues-exit-code: 1
9+
tests: true
2610

27-
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
11+
issues:
2812
max-issues-per-linter: 0
29-
30-
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
3113
max-same-issues: 0
3214

3315
linters:
34-
disable-all: true
16+
default: none
3517
enable:
36-
- errcheck
37-
- goimports
38-
- gosimple
3918
- govet
4019
- ineffassign
4120
- staticcheck
4221
- unconvert
4322
- unused
44-
fast: true
45-
46-
# options for analysis running
47-
run:
48-
# default concurrency is a available CPU number
49-
concurrency: 4
50-
51-
# timeout for analysis, e.g. 30s, 5m, default is 1m
52-
timeout: 10m
53-
54-
# exit code when at least one issue was found, default is 1
55-
issues-exit-code: 1
56-
57-
# include test files or not, default is true
58-
tests: true
59-
60-
# list of build tags, all linters use it. Default is empty list.
61-
#build-tags:
62-
# - mytag
63-
64-
# which dirs to skip: issues from them won't be reported;
65-
# can use regexp here: generated.*, regexp is applied on full path;
66-
# default value is empty list, but default dirs are skipped independently
67-
# from this option's value (see skip-dirs-use-default).
68-
#skip-dirs:
69-
# - src/external_libs
70-
# - autogenerated_by_my_lib
71-
72-
# default is true. Enables skipping of directories:
73-
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
74-
skip-dirs-use-default: true
75-
76-
# which files to skip: they will be analyzed, but issues from them
77-
# won't be reported. Default value is empty list, but there is
78-
# no need to include all autogenerated files, we confidently recognize
79-
# autogenerated files. If it's not please let us know.
80-
exclude-files:
81-
- ".*\\.hcl2spec\\.go$"
82-
# - lib/bad.go
83-
84-
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
85-
# If invoked with -mod=readonly, the go command is disallowed from the implicit
86-
# automatic updating of go.mod described above. Instead, it fails when any changes
87-
# to go.mod are needed. This setting is most useful to check that go.mod does
88-
# not need updates, such as in a continuous integration and testing system.
89-
# If invoked with -mod=vendor, the go command assumes that the vendor
90-
# directory holds the correct copies of dependencies and ignores
91-
# the dependency descriptions in go.mod.
92-
# modules-download-mode: vendor
93-
94-
95-
# output configuration options
96-
output:
97-
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
98-
formats: colored-line-number
99-
100-
# print lines of code with issue, default is true
101-
print-issued-lines: true
102-
103-
# print linter name in the end of issue text, default is true
104-
print-linter-name: true
105-
106-
# make issues output unique by line, default is true
107-
uniq-by-line: true
108-
109-
110-
# all available settings of specific linters
111-
linters-settings:
112-
errcheck:
113-
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
114-
# default is false: such cases aren't reported by default.
115-
check-type-assertions: false
116-
117-
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
118-
# default is false: such cases aren't reported by default.
119-
check-blank: false
120-
121-
# [deprecated] comma-separated list of pairs of the form pkg:regex
122-
# the regex is used to ignore names within pkg. (default "fmt:.*").
123-
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
124-
exclude-functions: fmt:.*,io/ioutil:^Read.*,io:Close
125-
126-
# path to a file containing a list of functions to exclude from checking
127-
# see https://github.com/kisielk/errcheck#excluding-functions for details
128-
#exclude: /path/to/file.txt
23+
exclusions:
24+
generated: lax
25+
rules:
26+
- linters:
27+
- staticcheck
28+
text: S(1002|1008|1021)
29+
- linters:
30+
- staticcheck
31+
text: ST1005
32+
- linters:
33+
- staticcheck
34+
text: 'SA(1006|1019|4006|4010|4017|5007|6005|9004):'
35+
- linters:
36+
- lll
37+
source: '^//go:generate '
38+
paths:
39+
- .*\.hcl2spec\.go$
40+
41+
formatters:
42+
enable:
43+
- goimports
44+
exclusions:
45+
generated: lax
46+
paths:
47+
- .*\.hcl2spec\.go$

go.mod

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/hashicorp/packer-plugin-docker
22

3-
go 1.24.12
3+
go 1.25.10
44

55
require (
66
github.com/aws/aws-sdk-go v1.45.6
77
github.com/google/go-cmp v0.7.0
88
github.com/hashicorp/aws-sdk-go-base v0.7.1
99
github.com/hashicorp/go-cleanhttp v0.5.2
1010
github.com/hashicorp/go-version v1.6.0
11-
github.com/hashicorp/hcl/v2 v2.19.1
12-
github.com/hashicorp/packer-plugin-sdk v0.6.4
11+
github.com/hashicorp/hcl/v2 v2.24.0
12+
github.com/hashicorp/packer-plugin-sdk v0.6.9
1313
github.com/mitchellh/mapstructure v1.5.0
1414
github.com/stretchr/testify v1.11.1
15-
github.com/zclconf/go-cty v1.13.3
15+
github.com/zclconf/go-cty v1.16.3
1616
)
1717

1818
require (
@@ -22,13 +22,27 @@ require (
2222
cloud.google.com/go/compute/metadata v0.9.0 // indirect
2323
cloud.google.com/go/iam v1.1.6 // indirect
2424
cloud.google.com/go/storage v1.39.1 // indirect
25-
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
25+
github.com/Azure/go-ntlmssp v0.1.1 // indirect
2626
github.com/ChrisTrenkamp/goxpath v0.0.0-20210404020558-97928f7e12b6 // indirect
2727
github.com/Microsoft/go-winio v0.6.2 // indirect
2828
github.com/agext/levenshtein v1.2.3 // indirect
2929
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
3030
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
3131
github.com/armon/go-metrics v0.4.1 // indirect
32+
github.com/aws/aws-sdk-go-v2 v1.37.2 // indirect
33+
github.com/aws/aws-sdk-go-v2/config v1.30.3 // indirect
34+
github.com/aws/aws-sdk-go-v2/credentials v1.18.3 // indirect
35+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.2 // indirect
36+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.2 // indirect
37+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.2 // indirect
38+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
39+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.0 // indirect
40+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.2 // indirect
41+
github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.37.0 // indirect
42+
github.com/aws/aws-sdk-go-v2/service/sso v1.27.0 // indirect
43+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.32.0 // indirect
44+
github.com/aws/aws-sdk-go-v2/service/sts v1.36.0 // indirect
45+
github.com/aws/smithy-go v1.22.5 // indirect
3246
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
3347
github.com/bodgit/ntlmssp v0.0.0-20240506230425-31973bb52d9b // indirect
3448
github.com/bodgit/windows v1.0.1 // indirect
@@ -102,18 +116,20 @@ require (
102116
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
103117
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
104118
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
105-
go.opentelemetry.io/otel v1.39.0 // indirect
106-
go.opentelemetry.io/otel/metric v1.39.0 // indirect
107-
go.opentelemetry.io/otel/trace v1.39.0 // indirect
119+
go.opentelemetry.io/otel v1.43.0 // indirect
120+
go.opentelemetry.io/otel/metric v1.43.0 // indirect
121+
go.opentelemetry.io/otel/trace v1.43.0 // indirect
108122
golang.org/x/crypto v0.46.0 // indirect
109123
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
124+
golang.org/x/mod v0.30.0 // indirect
110125
golang.org/x/net v0.48.0 // indirect
111126
golang.org/x/oauth2 v0.34.0 // indirect
112127
golang.org/x/sync v0.19.0 // indirect
113128
golang.org/x/sys v0.39.0 // indirect
114129
golang.org/x/term v0.38.0 // indirect
115130
golang.org/x/text v0.32.0 // indirect
116131
golang.org/x/time v0.11.0 // indirect
132+
golang.org/x/tools v0.39.0 // indirect
117133
google.golang.org/api v0.230.0 // indirect
118134
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
119135
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect

0 commit comments

Comments
 (0)