Update regression test expected value and pin deps

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
Dan Luhring 2021-01-19 22:20:12 -05:00
parent 176dfdd9c1
commit 9ec3ad58c8
No known key found for this signature in database
GPG Key ID: 9CEE23D079426CEF
3 changed files with 8 additions and 4 deletions

View File

@ -4,10 +4,11 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/anchore/syft/internal/log"
"io" "io"
"regexp" "regexp"
"github.com/anchore/syft/internal/log"
"github.com/anchore/syft/internal" "github.com/anchore/syft/internal"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"

View File

@ -24,7 +24,7 @@ func TestRegression212ApkBufferSize(t *testing.T) {
t.Fatalf("failed to catalog image: %+v", err) t.Fatalf("failed to catalog image: %+v", err)
} }
expectedPkgs := 57 expectedPkgs := 58
actualPkgs := 0 actualPkgs := 0
for range catalog.Enumerate(pkg.ApkPkg) { for range catalog.Enumerate(pkg.ApkPkg) {
actualPkgs += 1 actualPkgs += 1

View File

@ -1,2 +1,5 @@
FROM alpine:latest FROM alpine@sha256:d9a7354e3845ea8466bb00b22224d9116b183e594527fb5b6c3d30bc01a20378
RUN apk add tzdata vim alpine-sdk RUN apk add --no-cache \
tzdata=2020f-r0 \
vim=8.2.2320-r0 \
alpine-sdk=1.0-r0