(ctx context.Context, registryURL string)
| 155 | } |
| 156 | |
| 157 | func GetRepoURLWithoutProtocol(ctx context.Context, registryURL string) string { |
| 158 | repoURL := registryURL |
| 159 | parsedURL, err := url.Parse(repoURL) |
| 160 | if err != nil { |
| 161 | log.Ctx(ctx).Error().Stack().Err(err).Msg("Error parsing URL: ") |
| 162 | return "" |
| 163 | } |
| 164 | |
| 165 | return parsedURL.Host + parsedURL.Path |
| 166 | } |
no test coverage detected
searching dependent graphs…