| 304 | } |
| 305 | |
| 306 | func (e *Exporter) exportCelerExecutable() error { |
| 307 | exePath, err := os.Executable() |
| 308 | if err != nil { |
| 309 | return fmt.Errorf("failed to get celer executable path -> %w", err) |
| 310 | } |
| 311 | |
| 312 | dst := filepath.Join(e.exportDir, filepath.Base(exePath)) |
| 313 | if err := fileio.CopyFile(exePath, dst); err != nil { |
| 314 | return err |
| 315 | } |
| 316 | |
| 317 | return nil |
| 318 | } |
| 319 | |
| 320 | // buildResolvedRefs converts usedPorts to []refs.ResolvedRef for the snapshot markdown. |
| 321 | // It reuses already-resolved commits from refs.StoreResolvedCommits() populated during deploy. |