(logger *slog.Logger)
| 191 | } |
| 192 | |
| 193 | func newSourceOrModuleRefParser(logger *slog.Logger) *refParser { |
| 194 | return &refParser{ |
| 195 | logger: logger, |
| 196 | fetchRefParser: internal.NewRefParser( |
| 197 | logger, |
| 198 | internal.WithRawRefProcessor(processRawRefSourceOrModule), |
| 199 | internal.WithArchiveFormat( |
| 200 | formatTar, |
| 201 | internal.ArchiveTypeTar, |
| 202 | ), |
| 203 | internal.WithArchiveFormat( |
| 204 | formatTargz, |
| 205 | internal.ArchiveTypeTar, |
| 206 | internal.WithArchiveDefaultCompressionType( |
| 207 | internal.CompressionTypeGzip, |
| 208 | ), |
| 209 | ), |
| 210 | internal.WithArchiveFormat( |
| 211 | formatZip, |
| 212 | internal.ArchiveTypeZip, |
| 213 | ), |
| 214 | internal.WithGitFormat(formatGit), |
| 215 | internal.WithDirFormat(formatDir), |
| 216 | internal.WithModuleFormat(formatMod), |
| 217 | internal.WithProtoFileFormat(formatProtoFile), |
| 218 | ), |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | func (a *refParser) GetRef( |
| 223 | ctx context.Context, |
no test coverage detected
searching dependent graphs…