Skip to content

Commit

Permalink
Fix bug where the listed module version != the download link
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
  • Loading branch information
cam72cam committed Dec 12, 2023
1 parent ec8dffb commit cf87a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/v1api/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m ModuleGenerator) VersionDownloadPath(v module.Version) string {
func (m ModuleGenerator) VersionListing() ModuleVersionListingResponse {
versions := make([]ModuleVersionResponseItem, len(m.Metadata.Versions))
for i, v := range m.Metadata.Versions {
versions[i] = ModuleVersionResponseItem{Version: v.Version}
versions[i] = ModuleVersionResponseItem{Version: internal.TrimTagPrefix(v.Version)}
}
return ModuleVersionListingResponse{[]ModuleVersionListingResponseItem{{versions}}}
}
Expand Down

0 comments on commit cf87a18

Please sign in to comment.