Switch to google/uuid module

Current used github.com/pborman/uuid hasn't seen any updates in years.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
Mikel Olasagasti Uranga
2025-01-11 21:31:26 +01:00
parent 4076941bd7
commit 7074fc8856
11 changed files with 22 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ import (
"sync"
"syscall"
"github.com/pborman/uuid"
"github.com/google/uuid"
"github.com/saracen/walker"
"github.com/aptly-dev/aptly/aptly"
@@ -417,7 +417,7 @@ func (pool *PackagePool) FullPath(path string) string {
// GenerateTempPath generates temporary path for download (which is fast to import into package pool later on)
func (pool *PackagePool) GenerateTempPath(filename string) (string, error) {
random := uuid.NewRandom().String()
random := uuid.NewString()
return filepath.Join(pool.rootPath, random[0:2], random[2:4], random[4:]+filename), nil
}