(logger *slog.Logger)
| 129 | } |
| 130 | |
| 131 | func newSourceRefParser(logger *slog.Logger) *refParser { |
| 132 | return &refParser{ |
| 133 | logger: logger, |
| 134 | fetchRefParser: internal.NewRefParser( |
| 135 | logger, |
| 136 | internal.WithRawRefProcessor(processRawRefSource), |
| 137 | internal.WithArchiveFormat( |
| 138 | formatTar, |
| 139 | internal.ArchiveTypeTar, |
| 140 | ), |
| 141 | internal.WithArchiveFormat( |
| 142 | formatTargz, |
| 143 | internal.ArchiveTypeTar, |
| 144 | internal.WithArchiveDefaultCompressionType( |
| 145 | internal.CompressionTypeGzip, |
| 146 | ), |
| 147 | ), |
| 148 | internal.WithArchiveFormat( |
| 149 | formatZip, |
| 150 | internal.ArchiveTypeZip, |
| 151 | ), |
| 152 | internal.WithGitFormat(formatGit), |
| 153 | internal.WithDirFormat(formatDir), |
| 154 | internal.WithProtoFileFormat(formatProtoFile), |
| 155 | ), |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func newDirRefParser(logger *slog.Logger) *refParser { |
| 160 | return &refParser{ |
no test coverage detected
searching dependent graphs…