Updated build to be able to build from OCI repositories and some housecleaning

This commit is contained in:
Gregory Kurtzer
2020-11-07 21:34:07 -08:00
parent badd10b838
commit 4e0a5bea48
5 changed files with 135 additions and 40 deletions

View File

@@ -53,7 +53,7 @@ func (c *Cache) checkEntry(id string) (string, error) {
func (c *Cache) createEntry(id string) (string, error) {
path := filepath.Join(c.rootfsDir(), id)
if err := os.MkdirAll(path, 700); err != nil {
if err := os.MkdirAll(path, 755); err != nil {
return "", err
}
@@ -71,7 +71,7 @@ func NewCache(opts ...CacheOpt) (*Cache, error) {
}
}
if err := os.MkdirAll(s.path, 0700); err != nil {
if err := os.MkdirAll(s.path, 0755); err != nil {
return nil, err
}