func()

in pkg/archive/spec.go [67:82]


func (spec *Spec) StoragePath() (string, error) {
	pkg := spec.Pkg
	pkgOS := spec.OS()
	version := fmt.Sprintf("%s+azure", spec.Tag)
	distro := spec.Distro
	sanitizedArch := strings.ReplaceAll(spec.Arch, "/", "_")

	base, err := spec.Basename()
	if err != nil {
		return "", err
	}

	storagePath := fmt.Sprintf("%s/%s/%s/%s_%s/%s", pkg, version, distro, pkgOS, sanitizedArch, base)

	return storagePath, nil
}