diff --git a/tests/integration/test_data/gomod_workspaces/.build-config.yaml b/tests/integration/test_data/gomod_workspaces/.build-config.yaml new file mode 100644 index 000000000..36df5d249 --- /dev/null +++ b/tests/integration/test_data/gomod_workspaces/.build-config.yaml @@ -0,0 +1,10 @@ +environment_variables: +- name: GOCACHE + value: ${output_dir}/deps/gomod +- name: GOMODCACHE + value: ${output_dir}/deps/gomod/pkg/mod +- name: GOPATH + value: ${output_dir}/deps/gomod +- name: GOPROXY + value: file://${GOMODCACHE}/cache/download +project_files: [] diff --git a/tests/integration/test_data/gomod_workspaces/bom.json b/tests/integration/test_data/gomod_workspaces/bom.json new file mode 100644 index 000000000..c71aaa440 --- /dev/null +++ b/tests/integration/test_data/gomod_workspaces/bom.json @@ -0,0 +1,786 @@ +{ + "bomFormat": "CycloneDX", + "components": [ + { + "name": "errors", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/errors?type=package", + "type": "library" + }, + { + "name": "fmt", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/fmt?type=package", + "type": "library" + }, + { + "name": "github.com/labstack/echo/v4", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/echo@v4.0.0-20240522074442-449f904ecf26?type=module", + "type": "library", + "version": "v4.0.0-20240522074442-449f904ecf26" + }, + { + "name": "example.com/hello", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v0.0.0-20240522074442-449f904ecf26?type=module", + "type": "library", + "version": "v0.0.0-20240522074442-449f904ecf26" + }, + { + "name": "example.com/hello", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v0.0.0-20240522074442-449f904ecf26?type=package", + "type": "library", + "version": "v0.0.0-20240522074442-449f904ecf26" + }, + { + "name": "example.com/hiii", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hi/hiii@v0.0.0-20240522074442-449f904ecf26?type=module", + "type": "library", + "version": "v0.0.0-20240522074442-449f904ecf26" + }, + { + "name": "github.com/davecgh/go-spew", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + }, + { + "name": "cachi2:missing_hash:in_file", + "value": "workspace_modules/go.work.sum" + } + ], + "purl": "pkg:golang/github.com/davecgh/go-spew@v1.1.1?type=module", + "type": "library", + "version": "v1.1.1" + }, + { + "name": "github.com/golang-jwt/jwt", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/golang-jwt/jwt@v3.2.2%2Bincompatible?type=module", + "type": "library", + "version": "v3.2.2+incompatible" + }, + { + "name": "github.com/labstack/gommon", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/labstack/gommon@v0.4.2?type=module", + "type": "library", + "version": "v0.4.2" + }, + { + "name": "github.com/mattn/go-colorable", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/mattn/go-colorable@v0.1.13?type=module", + "type": "library", + "version": "v0.1.13" + }, + { + "name": "github.com/mattn/go-isatty", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/mattn/go-isatty@v0.0.20?type=module", + "type": "library", + "version": "v0.0.20" + }, + { + "name": "github.com/pmezard/go-difflib", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/pmezard/go-difflib@v1.0.0?type=module", + "type": "library", + "version": "v1.0.0" + }, + { + "name": "github.com/stretchr/objx", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/stretchr/objx@v0.5.0?type=module", + "type": "library", + "version": "v0.5.0" + }, + { + "name": "github.com/stretchr/testify", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/stretchr/testify@v1.8.4?type=module", + "type": "library", + "version": "v1.8.4" + }, + { + "name": "github.com/valyala/bytebufferpool", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/valyala/bytebufferpool@v1.0.0?type=module", + "type": "library", + "version": "v1.0.0" + }, + { + "name": "github.com/valyala/fasttemplate", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/github.com/valyala/fasttemplate@v1.2.2?type=module", + "type": "library", + "version": "v1.2.2" + }, + { + "name": "golang.org/x/crypto", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/crypto@v0.17.0?type=module", + "type": "library", + "version": "v0.17.0" + }, + { + "name": "golang.org/x/example/hello/reverse", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/example/hello/reverse@v0.0.0-20231013143937-1d6d2400d402?type=package", + "type": "library", + "version": "v0.0.0-20231013143937-1d6d2400d402" + }, + { + "name": "golang.org/x/example/hello", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/example/hello@v0.0.0-20231013143937-1d6d2400d402?type=module", + "type": "library", + "version": "v0.0.0-20231013143937-1d6d2400d402" + }, + { + "name": "golang.org/x/mod", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/mod@v0.8.0?type=module", + "type": "library", + "version": "v0.8.0" + }, + { + "name": "golang.org/x/net", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/net@v0.19.0?type=module", + "type": "library", + "version": "v0.19.0" + }, + { + "name": "golang.org/x/sys", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/sys@v0.15.0?type=module", + "type": "library", + "version": "v0.15.0" + }, + { + "name": "golang.org/x/term", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/term@v0.15.0?type=module", + "type": "library", + "version": "v0.15.0" + }, + { + "name": "golang.org/x/text", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/text@v0.14.0?type=module", + "type": "library", + "version": "v0.14.0" + }, + { + "name": "golang.org/x/time", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/time@v0.5.0?type=module", + "type": "library", + "version": "v0.5.0" + }, + { + "name": "golang.org/x/tools", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/golang.org/x/tools@v0.6.0?type=module", + "type": "library", + "version": "v0.6.0" + }, + { + "name": "gopkg.in/check.v1", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405?type=module", + "type": "library", + "version": "v0.0.0-20161208181325-20d25e280405" + }, + { + "name": "gopkg.in/yaml.v3", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + }, + { + "name": "cachi2:missing_hash:in_file", + "value": "workspace_modules/go.work.sum" + } + ], + "purl": "pkg:golang/gopkg.in/yaml.v3@v3.0.1?type=module", + "type": "library", + "version": "v3.0.1" + }, + { + "name": "internal/abi", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/abi?type=package", + "type": "library" + }, + { + "name": "internal/bytealg", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/bytealg?type=package", + "type": "library" + }, + { + "name": "internal/coverage/rtcov", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/coverage/rtcov?type=package", + "type": "library" + }, + { + "name": "internal/cpu", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/cpu?type=package", + "type": "library" + }, + { + "name": "internal/fmtsort", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/fmtsort?type=package", + "type": "library" + }, + { + "name": "internal/goarch", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/goarch?type=package", + "type": "library" + }, + { + "name": "internal/goexperiment", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/goexperiment?type=package", + "type": "library" + }, + { + "name": "internal/goos", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/goos?type=package", + "type": "library" + }, + { + "name": "internal/itoa", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/itoa?type=package", + "type": "library" + }, + { + "name": "internal/oserror", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/oserror?type=package", + "type": "library" + }, + { + "name": "internal/poll", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/poll?type=package", + "type": "library" + }, + { + "name": "internal/race", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/race?type=package", + "type": "library" + }, + { + "name": "internal/reflectlite", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/reflectlite?type=package", + "type": "library" + }, + { + "name": "internal/safefilepath", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/safefilepath?type=package", + "type": "library" + }, + { + "name": "internal/syscall/execenv", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/syscall/execenv?type=package", + "type": "library" + }, + { + "name": "internal/syscall/unix", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/syscall/unix?type=package", + "type": "library" + }, + { + "name": "internal/testlog", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/testlog?type=package", + "type": "library" + }, + { + "name": "internal/unsafeheader", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/internal/unsafeheader?type=package", + "type": "library" + }, + { + "name": "io/fs", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/io/fs?type=package", + "type": "library" + }, + { + "name": "io", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/io?type=package", + "type": "library" + }, + { + "name": "math/bits", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/math/bits?type=package", + "type": "library" + }, + { + "name": "math", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/math?type=package", + "type": "library" + }, + { + "name": "os", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/os?type=package", + "type": "library" + }, + { + "name": "path", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/path?type=package", + "type": "library" + }, + { + "name": "reflect", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/reflect?type=package", + "type": "library" + }, + { + "name": "runtime/internal/atomic", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/runtime/internal/atomic?type=package", + "type": "library" + }, + { + "name": "runtime/internal/math", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/runtime/internal/math?type=package", + "type": "library" + }, + { + "name": "runtime/internal/sys", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/runtime/internal/sys?type=package", + "type": "library" + }, + { + "name": "runtime/internal/syscall", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/runtime/internal/syscall?type=package", + "type": "library" + }, + { + "name": "runtime", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/runtime?type=package", + "type": "library" + }, + { + "name": "sort", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/sort?type=package", + "type": "library" + }, + { + "name": "strconv", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/strconv?type=package", + "type": "library" + }, + { + "name": "sync/atomic", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/sync/atomic?type=package", + "type": "library" + }, + { + "name": "sync", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/sync?type=package", + "type": "library" + }, + { + "name": "syscall", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/syscall?type=package", + "type": "library" + }, + { + "name": "time", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/time?type=package", + "type": "library" + }, + { + "name": "unicode/utf8", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/unicode/utf8?type=package", + "type": "library" + }, + { + "name": "unicode", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/unicode?type=package", + "type": "library" + }, + { + "name": "unsafe", + "properties": [ + { + "name": "cachi2:found_by", + "value": "cachi2" + } + ], + "purl": "pkg:golang/unsafe?type=package", + "type": "library" + } + ], + "metadata": { + "tools": [ + { + "name": "cachi2", + "vendor": "red hat" + } + ] + }, + "specVersion": "1.4", + "version": 1 +} diff --git a/tests/integration/test_data/gomod_workspaces/fetch_deps_sha256sums.json b/tests/integration/test_data/gomod_workspaces/fetch_deps_sha256sums.json new file mode 100644 index 000000000..a8edcbf36 --- /dev/null +++ b/tests/integration/test_data/gomod_workspaces/fetch_deps_sha256sums.json @@ -0,0 +1,135 @@ +{ + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/list": "sha256:aaeebc6ab5b9dd80bca452ec7a63a7175f6e9ce9b81b34a66c85e94a5e4d38ec", + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.info": "sha256:73de263267a4545708302d807be60fdb649c5c7b981d25302a638145fba0ec47", + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.mod": "sha256:bcb29393251237b79a17b6c19bf29134f43e8f438c3198988fcd461a1cdf05cc", + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.zip": "sha256:6b44a843951f371b7010c754ecc3cabefe815d5ced1c5b9409fb2d697e8a890d", + "gomod/pkg/mod/cache/download/github.com/davecgh/go-spew/@v/v1.1.1.ziphash": "sha256:d0c6b02d5d195e6a12a4fb79e28bb78b5a5a2244d3345f3b26dc23631b834b6d", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/list": "sha256:5ebcd200717e53c9e0e3508641afa764aa72b716ac54665288331b62518d6e5c", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/v3.2.2+incompatible.info": "sha256:d7b7db01295955571143d46a05fc899cbfe533dbd2719d822ed518a9ba1f976d", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/v3.2.2+incompatible.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/v3.2.2+incompatible.mod": "sha256:586ac4e9b742124fff5787532b3632c77f94043647e4afd3bbe8d1d041329be6", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/v3.2.2+incompatible.zip": "sha256:28d6dd7cc77d0a960699196e9c2170731f65d624d675888d2ababe7e8a422955", + "gomod/pkg/mod/cache/download/github.com/golang-jwt/jwt/@v/v3.2.2+incompatible.ziphash": "sha256:30e15582f1640950b381b051b1a2b3bd27459d24a3f2b674403d0bd4094112e4", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/list": "sha256:c4fc9d32e0a8935b8bdf5813d8ea9a16ef9bd9ba66a50935aab055d893efb4af", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/v0.4.2.info": "sha256:53baa306cbc9763b20e483abcf25d148224c443b8a6942a8e0421d1f17377096", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/v0.4.2.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/v0.4.2.mod": "sha256:8736ac200802fef8e582a4aec818b65c22244f9ca4273a838d234640e0ede29b", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/v0.4.2.zip": "sha256:ff3f66e0674b4e9a87a93cb8461f7ce4476c6667fb48e1c9313d39110b8e1fe8", + "gomod/pkg/mod/cache/download/github.com/labstack/gommon/@v/v0.4.2.ziphash": "sha256:04da047bcf67b28206593d3bb6b1c56408996e5ede922182c0128bfe8c1e7326", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/list": "sha256:569ecd143287e950de7d75fea6332242f5183257a1a9d496795e919b4e519871", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/v0.1.13.info": "sha256:e5046a1d32ba33fe735dec8d1770498dc27d0e042062498caf59cbb989e1052f", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/v0.1.13.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/v0.1.13.mod": "sha256:d6743ae2eae65716122f12b42c9f3f83a805c0ae32bd3c553d4a6f1bcb9243a5", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/v0.1.13.zip": "sha256:08be322dcc584a9fcfde5caf0cf878b4e11cd98f252e32bc704e92c5a4ba9d15", + "gomod/pkg/mod/cache/download/github.com/mattn/go-colorable/@v/v0.1.13.ziphash": "sha256:2ff994aa2e9dde85b97b025c59c8b6d7e52235a01d2e0d886c5cedf2b5fb28d5", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/list": "sha256:bf62a710283a2f4ca0d9b572fc510b9df9845385bd2cbff373a6217db30a1954", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.16.mod": "sha256:714766ec82d67db895ade8af6b8054ad430c3cea5e15b3a888f23ed2f3e1b863", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.20.info": "sha256:72bd2c026b677d85f9a0813c5e882f888dfea4e616d9e087ca7cd5f93ff6fed6", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.20.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.20.mod": "sha256:1eeabef1b4d98db73c6c2073289163649bc9a044552aca86b9d592fe84eaa1c8", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.20.zip": "sha256:f2d5f89ca451577e17464b9bb596dc0d0ecececb5eaa63622c41b57cd0b7b8cc", + "gomod/pkg/mod/cache/download/github.com/mattn/go-isatty/@v/v0.0.20.ziphash": "sha256:5dc17848bf37f947493142d99522ccd32fdcdc0c6a093343c83ca8c246b8d97d", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/list": "sha256:86f0555bccd069ac54e4c54a19a0f1aed9d328e13aa34aa090f3f3d43aaad441", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/v1.0.0.info": "sha256:97cbb0239d80e5221efd1f0aa645d120272bd3ee7975bd654f07a8ed0c2c2adc", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/v1.0.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/v1.0.0.mod": "sha256:74b2e766eb215377864d587badf57e95521f692d2a7860b3c7759093f9c9bec2", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/v1.0.0.zip": "sha256:de04cecc1a4b8d53e4357051026794bcbc54f2e6a260cfac508ce69d5d6457a0", + "gomod/pkg/mod/cache/download/github.com/pmezard/go-difflib/@v/v1.0.0.ziphash": "sha256:66cd4d8f07b890944f6cff4b4b7fa7bcd34ccb4896c89bfa5fc03615f5274e9b", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/list": "sha256:b7812c3f6328bec50f93801cbeac975516b549a4aee01e6930050dbf509dd6a5", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/v0.5.0.info": "sha256:5e746161405750d84ee9f2ac6cb595f24315597fb8d785b2a758af93215272b6", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/v0.5.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/v0.5.0.mod": "sha256:cb326540efcb1274a6e4e970d7fc9de2e8062f08a058fc296d859025e62e807a", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/v0.5.0.zip": "sha256:1a00b3bb5ad41cb72634ace06b7eb7df857404d77a7cab4e401a7c729561fe4c", + "gomod/pkg/mod/cache/download/github.com/stretchr/objx/@v/v0.5.0.ziphash": "sha256:76d0787817960150a497f69b8c9370c15147d5bfa1c43c04fdf752e7ff532b31", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/list": "sha256:8b00d9426cf3d764c04c512ad368826e3ab3da62481e62806fc3505ede78041f", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/v1.8.4.info": "sha256:280569c624625b778ea1dee9b8d356ce164ceca10c0a4199f72b03b407364c89", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/v1.8.4.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/v1.8.4.mod": "sha256:05e26cd069285a33cf2af46fdacdef569d5ae185e7963a76c0178328f68e97f9", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/v1.8.4.zip": "sha256:e206daaede0bd03de060bdfbeb984ac2c49b83058753fffc93fe0c220ea87532", + "gomod/pkg/mod/cache/download/github.com/stretchr/testify/@v/v1.8.4.ziphash": "sha256:37202f841a5b078b9f275295fb32e8ff353c1697513c9c081238dbbadff86be3", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/list": "sha256:86f0555bccd069ac54e4c54a19a0f1aed9d328e13aa34aa090f3f3d43aaad441", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/v1.0.0.info": "sha256:cb80479545632933d4891543a0d5bd6eba2531c08efa8cdb9edce283de424eeb", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/v1.0.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/v1.0.0.mod": "sha256:f8c294ccf118b92b1ade907508967bfe0f80a357426e1a07e52fa8cb3e577acd", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/v1.0.0.zip": "sha256:7f59f32c568539afee9a21a665a4156962b019beaac8404e26ba37af056b4f1e", + "gomod/pkg/mod/cache/download/github.com/valyala/bytebufferpool/@v/v1.0.0.ziphash": "sha256:0c7f4373c6b52a551814113b90b142aa3ceb72bedeb9b1a0cb2bace8b8a690b7", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/list": "sha256:9f4986da543c1aa9603381f801f8d317bf453f7e787407e934f052135bef832c", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/v1.2.2.info": "sha256:8cb67433bf8ab2404824c251ac280fe251d8a828a5e3561ccf0f15d6ccf8737d", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/v1.2.2.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/v1.2.2.mod": "sha256:c6ae2aa5b434e9c34b0fd7469bfe88ada9fa619af0b3effb7c20b41b30b4cf8b", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/v1.2.2.zip": "sha256:86f15c8e9fa85757afe7a865402f1fd6208e85bde797cd934b3a2cf64b5a9f4d", + "gomod/pkg/mod/cache/download/github.com/valyala/fasttemplate/@v/v1.2.2.ziphash": "sha256:1cb81eb5db0f38a5ea59cead6f236b975b8e2092d44fe34874670ccacd1039e8", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/list": "sha256:6a3af52fc45d4d44da571603218a7509b399b8c3694be82441271d61641bd937", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.17.0.info": "sha256:365763fd374bc8aedbd0beb0f0528b58996d0d311d007cc4cba1af9ed23760b4", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.17.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.17.0.mod": "sha256:dc40867bef3ca5179569cc2f8742bb618b8cc684b0d25a753250e81d6dc29442", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.17.0.zip": "sha256:97ea91df712ac1ca39c122480489be532b437bf4aeb5d781465cb1cf39824083", + "gomod/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.17.0.ziphash": "sha256:0a49a60b374ee0c48838d839fa734aba9960067c61f766d980f887a209a0e35c", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/list": "sha256:45e7bcfcee7f6f0563be14e1dc5d03f774f53c54a3247e3d52275e2407f4ced0", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/v0.0.0-20231013143937-1d6d2400d402.info": "sha256:a11c1102683b7254eaa59b04b782409d2b5ad0586f0fed032872b1ef3ccf4a7f", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/v0.0.0-20231013143937-1d6d2400d402.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/v0.0.0-20231013143937-1d6d2400d402.mod": "sha256:871d21b1a308c410ed106ac91e69eb0a1d4870350c776aa92816854e371c6641", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/v0.0.0-20231013143937-1d6d2400d402.zip": "sha256:6f2f8b8904a1a06eb8ecac40d15e9461e49389158964e94d9d4fffd4c5dcfce3", + "gomod/pkg/mod/cache/download/golang.org/x/example/hello/@v/v0.0.0-20231013143937-1d6d2400d402.ziphash": "sha256:8002333010820a5ed1343ed60b1eeafce6cd0c5765bf0e0326f4e39b37a810fd", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/list": "sha256:7dfe51344c2f4d648ce2c54465c531fdc19f823c3aaf0ce9e8d4393416436ce2", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/v0.8.0.info": "sha256:b1a20384430b3a86907daec44bacbda5050716c6ed1bc89cb415e1f6144d7d81", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/v0.8.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/v0.8.0.mod": "sha256:624567459c6e9947ac4abde0b7034ee61dcbb6a9373f5970094c0bb3e8121964", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/v0.8.0.zip": "sha256:4ae8176799d8cda819e70731ba6855735003e7e4930436e34584c75c96c496e0", + "gomod/pkg/mod/cache/download/golang.org/x/mod/@v/v0.8.0.ziphash": "sha256:14ad65ce7aa319f954e6921f2b52c2b326d7c1bac4508b75cb2716809077a512", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/list": "sha256:349f0b2fb5b9c49835b51e68fd0e8f0179c59a48f880004ce48b31dbae778930", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/v0.19.0.info": "sha256:83966e4abeb9e7a3145fcf9e985a4a6b73306c60d7fa58e26f889eea1bfe603b", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/v0.19.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/v0.19.0.mod": "sha256:a8dda4340930b80851e97f32bfa6adb86be185a4aeea9fc766a6fe72f127f101", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/v0.19.0.zip": "sha256:b917252564ae2c4804c298d2952fc1682865330570d187795454a4f785abedc6", + "gomod/pkg/mod/cache/download/golang.org/x/net/@v/v0.19.0.ziphash": "sha256:fe59182fe6463bc199b99a15ceccc0ad32429b5c61b07280c7ca6d47606cab3f", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/list": "sha256:d3f4955765c4a284ed0b106c08e0cc412775622dcfb43756ce386f7ab6187bb0", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.0.0-20220811171246-fbc7d0a398ab.mod": "sha256:f033333096fe198f3151deed93f2deba74e50bbfe7739134045bc3b7ce4a5024", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.15.0.info": "sha256:a034b221eb1c2c142a3dba8779b447cfe3aecc1a956d3ac385c007fcddf979d8", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.15.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.15.0.mod": "sha256:d227b325f621f4ebe28d39ba773ea99b870f393b7c09c34592c365b16dd560de", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.15.0.zip": "sha256:8612eb416c739c3b04ce48dcbe65632c6fbc427031fd981caeceec6410d1e1fc", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.15.0.ziphash": "sha256:da9c1e2a89ee4ce066053be9c11b03d71090392c3c7641be7b5e6ee3e09d93ce", + "gomod/pkg/mod/cache/download/golang.org/x/sys/@v/v0.6.0.mod": "sha256:f033333096fe198f3151deed93f2deba74e50bbfe7739134045bc3b7ce4a5024", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/list": "sha256:241eb70c2e1d50f6e3bb607d4154d2e63bbb26d01bd3cefbaf41154ef2f26dd0", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/v0.15.0.info": "sha256:a7c6c64763c25ac53e181348d5e8ab4c2efac98146b5b93de58b80aa41a5690e", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/v0.15.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/v0.15.0.mod": "sha256:4b86976f8c4efb87bbcbec283cbfb395a28177b4b8b83420b49d95728eb7a2f8", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/v0.15.0.zip": "sha256:cb7fff77d2925dc0e4f5ac0ced38d10683824de81aae3728c633a9f7382d2052", + "gomod/pkg/mod/cache/download/golang.org/x/term/@v/v0.15.0.ziphash": "sha256:d5b8a87ffe37c65b03064ae66434a92a58641c4413b698273fb073524dc20138", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/list": "sha256:b6d6c5a037cce47a8b713dc0906341d4b1d8525d542ca8acb6c7ac41d7222b96", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/v0.14.0.info": "sha256:6ff6b9e952cd0ca67bffe6471fd19f1b0f0c72ba393f52f5e1612e8685c13abb", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/v0.14.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/v0.14.0.mod": "sha256:971579f17e9abc5926ab76214f533bd517cf4925c885243ac4755a1a0a7c69ef", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/v0.14.0.zip": "sha256:b9814897e0e09cd576a7a013f066c7db537a3d538d2e0f60f0caee9bc1b3f4af", + "gomod/pkg/mod/cache/download/golang.org/x/text/@v/v0.14.0.ziphash": "sha256:539012412b8393d1b98690539169972de66967da4591f078c0d4459d7fdbf205", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/list": "sha256:b7812c3f6328bec50f93801cbeac975516b549a4aee01e6930050dbf509dd6a5", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/v0.5.0.info": "sha256:75887a7104a9b259807010a0c96f2f0efc806c958c6c5885b4a76b330386389c", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/v0.5.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/v0.5.0.mod": "sha256:226a6cc982bae02ff1e168de8c3e45a2f3f986c69edbc1f416c58b6081ef262e", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/v0.5.0.zip": "sha256:e0e5812d19aed367f79ac0ae0ce4770b6602c85f5cfb8d59f3f573c7487ea516", + "gomod/pkg/mod/cache/download/golang.org/x/time/@v/v0.5.0.ziphash": "sha256:023a6f0c5c08f43d20d88ce7b7b23d8dca15ed41e99a9513ea38a90973eb4bb0", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/list": "sha256:613ff7316ed558079973b8e02ce8dac763243297e0f4c8a584958c579f6e86fd", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/v0.6.0.info": "sha256:321a835b8eca72fa5ee24db9a38a8e51afbd96200dc645591c239ca2a5960e9f", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/v0.6.0.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/v0.6.0.mod": "sha256:830ed78dcd3e9927c412e2641230308447749d513d31024d276e2443b2016609", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/v0.6.0.zip": "sha256:9a29c8904c2acd4b65825e916cbdaf417086f35bb68c54af9a6283a0e1341e85", + "gomod/pkg/mod/cache/download/golang.org/x/tools/@v/v0.6.0.ziphash": "sha256:92ca9a14b552da180e0825e090a976ef1ff1413a8f724392708e2e62a2900cf5", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/list": "sha256:23d183e44d602862d175fcc77f728aa44802cde3a001d4ceb979eb0c0630309d", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.info": "sha256:b4a754245203665d2bdcde7344c31c244d5ed74ffbe523997b0b31b19522723b", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.mod": "sha256:5c306e0d633cd66a11b40e2e5fbbc6da42110db7d72ea3c1524ceb45ee40c33f", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.zip": "sha256:4e1817f964ca34e545b81afda0325a5e89cf58de2e413d8207c0afddd0fdc15c", + "gomod/pkg/mod/cache/download/gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.ziphash": "sha256:af6da70bf382a6429fc0e40289f8415bfec49dace0ef0b04e179f4bd4dd0d9d8", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/list": "sha256:98479df9024ae0e6b5c76af84a02332b03f2f0b8e1bb07c605189181264210c7", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.info": "sha256:0cdb0c9ac8c3b25dbd420a86ab27debfa469a8b48ee10560224704c2852ac6c0", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.lock": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.mod": "sha256:21579860a20306fcf43b1bd234d1fba319499c77611b71c05f9bf3ba90dab939", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.zip": "sha256:aab8fbc4e6300ea08e6afe1caea18a21c90c79f489f52c53e2f20431f1a9a015", + "gomod/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.ziphash": "sha256:700bb88b7be96cd699d6d9597ae915dc09c61599c5153f8013b1e5869e23902e", + "gomod/pkg/mod/cache/download/sumdb/sum.golang.org/lookup/github.com/davecgh/go-spew@v1.1.1": "unstable", + "gomod/pkg/mod/cache/download/sumdb/sum.golang.org/lookup/golang.org/x/sys@v0.0.0-20220811171246-fbc7d0a398ab": "unstable", + "gomod/pkg/mod/cache/download/sumdb/sum.golang.org/lookup/golang.org/x/sys@v0.6.0": "unstable", + "gomod/pkg/mod/cache/download/sumdb/sum.golang.org/lookup/gopkg.in/yaml.v3@v3.0.1": "unstable" +} diff --git a/tests/integration/test_gomod.py b/tests/integration/test_gomod.py index 2c138d10e..5555d71e2 100644 --- a/tests/integration/test_gomod.py +++ b/tests/integration/test_gomod.py @@ -170,6 +170,18 @@ ), id="gomod_multiple_modules_missing_checksums", ), + # Test case checks if cachi2 can process go workspaces properly. + pytest.param( + utils.TestParameters( + repo="https://github.com/cachito-testing/cachi2-gomod.git", + ref="449f904ecf268856ef335b2033cb64cc417b7c26", + packages=({"path": "./workspace_modules/hello", "type": "gomod"},), + check_vendor_checksums=False, + expected_exit_code=0, + expected_output="All dependencies fetched successfully", + ), + id="gomod_workspaces", + ), ], ) def test_gomod_packages(