(path string, status *ServiceStatus)
| 111 | } |
| 112 | |
| 113 | func writeServiceStatusFile(path string, status *ServiceStatus) error { |
| 114 | content, err := json.Marshal(status) |
| 115 | if err != nil { |
| 116 | return errors.WithStack(err) |
| 117 | } |
| 118 | _ = os.MkdirAll(filepath.Dir(path), 0o755) // create path, ignore error |
| 119 | return errors.WithStack(os.WriteFile(path, content, 0o644)) |
| 120 | } |
| 121 | |
| 122 | //lint:ignore U1000 Ignore unused function temporarily for debugging |
| 123 | func updateServiceStatusOnRemote(projectDir string, s *ServiceStatus) error { |
no outgoing calls
no test coverage detected