diff --git a/types/resource.go b/types/resource.go index f48d056a..9d3537b3 100644 --- a/types/resource.go +++ b/types/resource.go @@ -32,5 +32,5 @@ func (res Resource) Validate() (err error) { // Path returns a file path for a resource based on a hash of the label // nolint func (res Resource) Path(pkg Package) (path string) { - return filepath.Join("extracted-asset-resources", pkg.Repo+"-resource-"+fmt.Sprintf("%x", md5.Sum([]byte(res.Name)))) + return filepath.Join("extracted-asset-resources", fmt.Sprintf("%s-%x", pkg.Repo, md5.Sum([]byte(res.Name)))) }