MCPcopy Create free account
hub / github.com/celer-pkg/celer / exportCelerExecutable

Method exportCelerExecutable

snapshot/export.go:306–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304}
305
306func (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.

Callers 1

ExportMethod · 0.95

Calls 1

CopyFileFunction · 0.92

Tested by

no test coverage detected