Skip to content

Drop cdt binary, default to cola#8

Merged
jdevera merged 1 commit into
mainfrom
drop-cdt
May 17, 2026
Merged

Drop cdt binary, default to cola#8
jdevera merged 1 commit into
mainfrom
drop-cdt

Conversation

@jdevera
Copy link
Copy Markdown
Owner

@jdevera jdevera commented May 17, 2026

Summary

PR criteo#195's runtime binary name made the compile-time appName a near-unused fallback (only fires if os.Executable() errors). Continuing to ship two binaries that differ in nothing except a hardcoded fallback string doesn't serve the fork — and the cdt build shipped "Criteo Dev Toolkit" as its long name, which actively contradicts the fork notice we just added.

This consolidates to one binary: cola.

Changes:

  • main.goappName fallback "cdt" → "cola", appLongName "Criteo Dev Toolkit" → "Command Launcher".
  • build.sh — same defaults flipped.
  • .github/workflows/go.yml:
    • Build step: drop the cdt build.sh line, keep only cola.
    • "Upload CDT" step removed; "Upload COLA" renamed to "Upload binary".
    • Tag-release rename / files block: cdt lines dropped.
    • Packaging job: every download artifact, rename, and zip path switched from cdt → cola. All-in-one zip is now cola_${ref_name}.zip.

Not touched in this PR:

  • CDT_VAULT_SECRET env var in the workflow stays. internal/gvault/file-vault.go:157 reads that exact string literally regardless of binary name. Until the env var split design call is made, the literal has to match.

Test plan

  • go vet ./... clean locally
  • go test ./... passes locally
  • ./build.sh with no args produces a cola binary (was cdt)
  • CI passes on Linux/Windows/macOS
  • Next tagged release ships only cola_* binaries (verified by absence of cdt artifacts in the release page)

PR criteo#195 (runtime binary name) made the compile-time appName a
near-unused fallback — users get the binary name from the file
they run, not from the linker. Building both 'cdt' and 'cola'
artifacts no longer makes sense for the fork, and the cdt build
shipped 'Criteo Dev Toolkit' as its long name, which contradicts
the fork notice.

Changes:
  main.go:      appName     'cdt' -> 'cola'
                appLongName 'Criteo Dev Toolkit' -> 'Command Launcher'
  build.sh:     same defaults
  go.yml:       drop cdt build line, cdt upload step, cdt rename
                and cdt entry in tag-release files; in the
                packaging job, switch every cdt artifact name and
                rename to cola; zip becomes cola_VERSION.zip.

Not touched: CDT_VAULT_SECRET env var. internal/gvault/file-vault.go
still reads that exact string literally — the framework-vs-app
prefix split is a separate design call (tracked).
@jdevera jdevera merged commit 19d2d3d into main May 17, 2026
16 checks passed
@jdevera jdevera deleted the drop-cdt branch May 17, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant