Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit c65ded9

Browse files
authored
Merge pull request #1534 from chris-crone/bump-lint
2 parents 0b96839 + d3ca32a commit c65ded9

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
env:
3333
BUILD_TAGS: kube,e2e
3434
run: |
35-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b /usr/bin/ v1.37.0
35+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b /usr/bin/ v1.39.0
3636
make -f builder.Makefile lint
3737
3838
# only on main branch, costs too much for the gain on every PR
3939
validate-cross-build:
40-
name: Validate cros build
40+
name: Validate cross build
4141
runs-on: ubuntu-latest
4242
if: github.ref == 'refs/heads/main'
4343
env:

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:experimental
1+
# syntax=docker/dockerfile:1.2
22

33

44
# Copyright 2020 Docker Compose CLI authors
@@ -16,13 +16,12 @@
1616
# limitations under the License.
1717

1818
ARG GO_VERSION=1.16-alpine
19-
ARG GOLANGCI_LINT_VERSION=v1.37.0-alpine
19+
ARG GOLANGCI_LINT_VERSION=v1.39.0-alpine
2020
ARG PROTOC_GEN_GO_VERSION=v1.4.3
2121

2222
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS base
2323
WORKDIR /compose-cli
24-
ENV GO111MODULE=on
25-
RUN apk add --no-cache \
24+
RUN apk add --no-cache -vv \
2625
git \
2726
docker \
2827
make \

ecs/autoscaling_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ services:
3434
max: 10
3535
`, useDefaultVPC)
3636
target := template.Resources["FooScalableTarget"].(*autoscaling.ScalableTarget)
37-
assert.Check(t, target != nil)
37+
assert.Check(t, target != nil) //nolint:staticcheck
3838
assert.Check(t, target.MaxCapacity == 10) //nolint:staticcheck
3939

4040
policy := template.Resources["FooScalingPolicy"].(*autoscaling.ScalingPolicy)
41-
assert.Check(t, policy != nil)
41+
assert.Check(t, policy != nil) //nolint:staticcheck
4242
assert.Check(t, policy.TargetTrackingScalingPolicyConfiguration.TargetValue == float64(75)) //nolint:staticcheck
4343
}

ecs/cloudformation_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ networks:
366366
assert.Check(t, template.Resources["DefaultNetwork"] == nil)
367367
assert.Check(t, template.Resources["DefaultNetworkIngress"] == nil)
368368
s := template.Resources["TestService"].(*ecs.Service)
369-
assert.Check(t, s != nil)
369+
assert.Check(t, s != nil) //nolint:staticcheck
370370
assert.Check(t, s.NetworkConfiguration.AwsvpcConfiguration.SecurityGroups[0] == "sg-123abc") //nolint:staticcheck
371371
}
372372

@@ -383,11 +383,11 @@ volumes:
383383
m.ResolveFileSystem(gomock.Any(), "fs-123abc").Return(existingAWSResource{id: "fs-123abc"}, nil)
384384
})
385385
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
386-
assert.Check(t, s != nil)
386+
assert.Check(t, s != nil) //nolint:staticcheck
387387
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
388388

389389
s = template.Resources["DbdataNFSMountTargetOnSubnet2"].(*efs.MountTarget)
390-
assert.Check(t, s != nil)
390+
assert.Check(t, s != nil) //nolint:staticcheck
391391
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
392392
}
393393

@@ -412,15 +412,15 @@ volumes:
412412
})
413413
n := volumeResourceName("db-data")
414414
f := template.Resources[n].(*efs.FileSystem)
415-
assert.Check(t, f != nil)
415+
assert.Check(t, f != nil) //nolint:staticcheck
416416
assert.Equal(t, f.BackupPolicy.Status, "ENABLED") //nolint:staticcheck
417417
assert.Equal(t, f.LifecyclePolicies[0].TransitionToIA, "AFTER_30_DAYS") //nolint:staticcheck
418418
assert.Equal(t, f.PerformanceMode, "maxIO") //nolint:staticcheck
419419
assert.Equal(t, f.ThroughputMode, "provisioned") //nolint:staticcheck
420420
assert.Equal(t, f.ProvisionedThroughputInMibps, float64(1024)) //nolint:staticcheck
421421

422422
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
423-
assert.Check(t, s != nil)
423+
assert.Check(t, s != nil) //nolint:staticcheck
424424
assert.Equal(t, s.FileSystemId, cloudformation.Ref(n)) //nolint:staticcheck
425425
}
426426

@@ -438,7 +438,7 @@ volumes:
438438
m.ListFileSystems(gomock.Any(), gomock.Any()).Return(nil, nil)
439439
})
440440
a := template.Resources["DbdataAccessPoint"].(*efs.AccessPoint)
441-
assert.Check(t, a != nil)
441+
assert.Check(t, a != nil) //nolint:staticcheck
442442
assert.Equal(t, a.PosixUser.Uid, "1002") //nolint:staticcheck
443443
assert.Equal(t, a.PosixUser.Gid, "1002") //nolint:staticcheck
444444
}
@@ -461,7 +461,7 @@ volumes:
461461
}, nil)
462462
})
463463
s := template.Resources["DbdataNFSMountTargetOnSubnet1"].(*efs.MountTarget)
464-
assert.Check(t, s != nil)
464+
assert.Check(t, s != nil) //nolint:staticcheck
465465
assert.Equal(t, s.FileSystemId, "fs-123abc") //nolint:staticcheck
466466
}
467467

0 commit comments

Comments
 (0)