Skip to content

Commit 20e3710

Browse files
shivanand-harnessHarness
authored andcommitted
fix: [AH-2473]: fix issue with download file url (#135)
* a2b69f fix: [AH-2473]: fix issue with download file url
1 parent 83fbf58 commit 20e3710

File tree

1 file changed

+2
-1
lines changed
  • module/ar/migrate/migratable

1 file changed

+2
-1
lines changed

module/ar/migrate/migratable/file.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ func (r *File) Migrate(ctx context.Context) error {
285285
if idx == -1 {
286286
return fmt.Errorf("file Download url is not correct for NPM")
287287
}
288-
tarFileURL := r.file.Uri[:idx]
288+
tarFileURL := r.file.Uri
289+
logger.Info().Msg("Downloading tar file from " + tarFileURL)
289290
tarFileReader, _, err := r.srcAdapter.DownloadFile(r.srcRegistry, tarFileURL)
290291
if err != nil {
291292
logger.Error().Err(err).Msg("Failed to fetch metadata")

0 commit comments

Comments
 (0)