Skip to content

Commit cdc3203

Browse files
authored
Merge pull request #494 from doringeman/lint
chore(ci): pin golangci-lint-action to specific commit
2 parents c8c75f6 + f95360c commit cdc3203

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
cache: true
2424

2525
- name: Install golangci-lint
26-
run: |
27-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.2.0
28-
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
26+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
27+
with:
28+
version: v2.7.2
29+
install-only: true
2930

3031
- name: Run linting for ${{ matrix.goos }}
3132
env:

pkg/distribution/internal/mutate/mutate_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ func TestAppendLayer(t *testing.T) {
3030
mdl2 := mutate.AppendLayers(mdl1,
3131
static.NewLayer([]byte("some layer content"), "application/vnd.example.some.media.type"),
3232
)
33-
if err != nil {
34-
t.Fatalf("Failed to create layer: %v", err)
35-
}
3633
if mdl2 == nil {
3734
t.Fatal("Expected non-nil model")
3835
}

0 commit comments

Comments
 (0)