Skip to content
Open
Changes from all commits
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 pkg/functions/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func (f Function) Stamp(oo ...stampOption) (err error) {
}

// Write out the hash
if err = os.WriteFile(filepath.Join(f.Root, RunDataDir, BuiltHash), []byte(hash), os.ModePerm); err != nil {
if err = os.WriteFile(filepath.Join(f.Root, RunDataDir, BuiltHash), []byte(hash), 0644); err != nil {
return
}

Expand Down Expand Up @@ -830,7 +830,7 @@ func (f Function) WriteRuntimeBuiltImage(verbose bool) error {
fmt.Printf("Writing built image: '%s' at path: '%s'\n", f.Build.Image, path)
}

return os.WriteFile(path, []byte(f.Build.Image), os.ModePerm)
return os.WriteFile(path, []byte(f.Build.Image), 0644)
}

// getLastBuiltImage reads .func/built-image and returns its value or empty string
Expand Down
Loading