diff --git a/api/mirror.go b/api/mirror.go index 69684b06..cedd79d2 100644 --- a/api/mirror.go +++ b/api/mirror.go @@ -3,7 +3,6 @@ package api import ( "fmt" "io/ioutil" - "log" "net/http" "os" "sort" diff --git a/azure/azure.go b/azure/azure.go index 46b01d23..b313f904 100644 --- a/azure/azure.go +++ b/azure/azure.go @@ -1,6 +1,7 @@ -// Package azure handles publishing to Azure Storage package azure +// Package azure handles publishing to Azure Storage + import ( "context" "encoding/hex" diff --git a/azure/public.go b/azure/public.go index 7af1d6ae..2930a5db 100644 --- a/azure/public.go +++ b/azure/public.go @@ -114,7 +114,8 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath, sourcePath string, sourceChecksums utils.ChecksumInfo, force bool) error { relFilePath := filepath.Join(publishedRelPath, fileName) - prefixRelFilePath := filepath.Join(publishedPrefix, relFilePath) + // prefixRelFilePath := filepath.Join(publishedPrefix, relFilePath) + // FIXME: check how to integrate publishedPrefix: poolPath := storage.az.blobPath(fileName) if storage.pathCache == nil { @@ -158,7 +159,7 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath, } defer source.Close() - err = storage.az.putFile(storage.az.blobURL(relPath), source, sourceMD5) + err = storage.az.putFile(storage.az.blobURL(relFilePath), source, sourceMD5) if err == nil { pathCache[relFilePath] = sourceMD5 } else {