Skip to content

Commit 10946d8

Browse files
dependabot[bot]Abhijeet V
andauthored
Bump the github-actions-breaking group with 3 updates (#156)
Fixed new lint errors that came up due to upgrade to golangci-lint. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Abhijeet V <abhijeet.v@hashicorp.com>
1 parent e05fe8c commit 10946d8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/go-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Setup go
18-
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
18+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1919
with:
2020
go-version: ${{ matrix.go-version }}
2121

2222
- name: Checkout code
23-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424

2525
- name: Create test directory
2626
run: |
@@ -50,7 +50,7 @@ jobs:
5050
fi
5151
5252
- name: Run golangci-lint
53-
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
53+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
5454

5555
# Install gotestsum with go get for 1.15.3; otherwise default to go install
5656
- name: Install gotestsum

constraint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (c *Constraint) String() string {
178178
func parseSingle(v string) (*Constraint, error) {
179179
matches := constraintRegexp.FindStringSubmatch(v)
180180
if matches == nil {
181-
return nil, fmt.Errorf("Malformed constraint: %s", v)
181+
return nil, fmt.Errorf("malformed constraint: %s", v)
182182
}
183183

184184
check, err := NewVersion(matches[2])

version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ func NewSemver(v string) (*Version, error) {
6363
func newVersion(v string, pattern *regexp.Regexp) (*Version, error) {
6464
matches := pattern.FindStringSubmatch(v)
6565
if matches == nil {
66-
return nil, fmt.Errorf("Malformed version: %s", v)
66+
return nil, fmt.Errorf("malformed version: %s", v)
6767
}
6868
segmentsStr := strings.Split(matches[1], ".")
6969
segments := make([]int64, len(segmentsStr))
7070
for i, str := range segmentsStr {
7171
val, err := strconv.ParseInt(str, 10, 64)
7272
if err != nil {
7373
return nil, fmt.Errorf(
74-
"Error parsing version: %s", err)
74+
"error parsing version: %s", err)
7575
}
7676

7777
segments[i] = val

0 commit comments

Comments
 (0)