Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions devcontainer/devcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (s *Spec) compileFeatures(fs billy.Filesystem, devcontainerDir, scratchDir
}

featuresDir := filepath.Join(scratchDir, "features")
err := fs.MkdirAll(featuresDir, 0o644)
err := fs.MkdirAll(featuresDir, 0o755)
Comment thread
johnstcn marked this conversation as resolved.
if err != nil {
return "", nil, fmt.Errorf("create features directory: %w", err)
}
Expand Down Expand Up @@ -277,7 +277,7 @@ func (s *Spec) compileFeatures(fs billy.Filesystem, devcontainerDir, scratchDir
featureSha := md5.Sum([]byte(featureRefRaw))
Comment thread
johnstcn marked this conversation as resolved.
featureName := filepath.Base(featureRef)
featureDir := filepath.Join(featuresDir, fmt.Sprintf("%s-%x", featureName, featureSha[:4]))
if err := fs.MkdirAll(featureDir, 0o644); err != nil {
if err := fs.MkdirAll(featureDir, 0o755); err != nil {
Comment thread
johnstcn marked this conversation as resolved.
return "", nil, err
Comment thread
johnstcn marked this conversation as resolved.
Outdated
}
spec, err := features.Extract(fs, devcontainerDir, featureDir, featureRefRaw)
Expand Down
Loading