Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Go module with AllLayers only giving RealPath information #619

@jwstric2

Description

@jwstric2

What happened:

Missing layer awareness for go-modules

What you expected to happen:

Expected layer information added when AllLayers is given for go modules

How to reproduce it (as minimally and precisely as possible):

git clone https://github.com/olliefr/docker-gs-ping
docker build -t docker-gs-ping .
syft docker-gs-ping -o json -s AllLayers > output_alllayers_golang.json

Look in the output for github.com/dgrijalva/jwt-go, the location is File only.

output_0.25.0_alllayers_golang.zip

Anything else we need to know?:

Environment:

  • Output of syft version:

Started in syft 0.25; using latest version

$ /tmp/syft-0.29/syft version
Application:   syft
Version:       0.29.0
BuildDate:     2021-10-31T15:22:19Z
GitCommit:     a2882ee810edcbf4db3230e982c316b261eb17cd
GitTreeState:  clean
Platform:      linux/amd64
GoVersion:     go1.16.9
Compiler:      gc
  • OS (e.g: cat /etc/os-release or similar):
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions