Skip to content

Commit

Permalink
Cover version tags applied to Go workspaces with a integration test
Browse files Browse the repository at this point in the history
In Golang, the tags applied to the repository are used to determine the
module's version, and they can be applied individually for submodules
(or workspaces). Cachi2 must properly report the versions of Go modules
based on the existing tags.

This commit changes the expected data for the existing gomod workspaces
integration test to match the newly pushed tags to the test repository:

workspace_modules/echo/v4.2.0
workspace_modules/hello/v1.1.0
workspace_modules/hi/hiii/v1.2.0

Signed-off-by: Bruno Pimentel <[email protected]>
  • Loading branch information
brunoapimentel committed Jun 27, 2024
1 parent 695de20 commit fc7e6f8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/integration/test_data/gomod_workspaces/bom.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"value": "cachi2"
}
],
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/echo@v4.0.0-20240522074442-449f904ecf26?type=module",
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/echo@v4.2.0?type=module",
"type": "library",
"version": "v4.0.0-20240522074442-449f904ecf26"
"version": "v4.2.0"
},
{
"name": "example.com/hello",
Expand All @@ -43,9 +43,9 @@
"value": "cachi2"
}
],
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v0.0.0-20240522074442-449f904ecf26?type=module",
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v1.1.0?type=module",
"type": "library",
"version": "v0.0.0-20240522074442-449f904ecf26"
"version": "v1.1.0"
},
{
"name": "example.com/hello",
Expand All @@ -55,9 +55,9 @@
"value": "cachi2"
}
],
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v0.0.0-20240522074442-449f904ecf26?type=package",
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hello@v1.1.0?type=package",
"type": "library",
"version": "v0.0.0-20240522074442-449f904ecf26"
"version": "v1.1.0"
},
{
"name": "example.com/hiii",
Expand All @@ -67,9 +67,9 @@
"value": "cachi2"
}
],
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hi/hiii@v0.0.0-20240522074442-449f904ecf26?type=module",
"purl": "pkg:golang/github.com/cachito-testing/cachi2-gomod/workspace_modules/hi/hiii@v1.2.0?type=module",
"type": "library",
"version": "v0.0.0-20240522074442-449f904ecf26"
"version": "v1.2.0"
},
{
"name": "github.com/davecgh/go-spew",
Expand Down

0 comments on commit fc7e6f8

Please sign in to comment.