Skip to content

chore/dev: Retire dead CI config and modernize the Go build - #91

Closed
janhartman wants to merge 1 commit into
masterfrom
go-modules-6ec3833b-bb95-4665-aea2-b19268cf924d
Closed

chore/dev: Retire dead CI config and modernize the Go build#91
janhartman wants to merge 1 commit into
masterfrom
go-modules-6ec3833b-bb95-4665-aea2-b19268cf924d

Conversation

@janhartman

Copy link
Copy Markdown

This repository carries CI configuration for a service that no longer builds it, so nothing has actually been verifying that it compiles. Most of these libraries also predate Go modules: without a go.mod they cannot be built by any currently supported Go toolchain outside a GOPATH workspace, and they cannot be consumed as dependencies with reproducible versions.

This change retires the dead configuration and replaces it with a GitHub Actions workflow that builds, vets, and race-tests against Go 1.26 on pull requests and on branch pushes. Where the repository is not yet on Go modules, it also adds a go.mod with a canonical module path, resolves and pins its dependencies, and commits go.sum — updating the code where it no longer compiles on a modern toolchain. That means repointing legacy sourcegraph.com/... vanity imports at their live github.com/... equivalents, removing canonical import-path comments that break module builds, replacing io/ioutil with its os/io successors, and adding //go:build constraints alongside the older // +build form. Build-status badges pointing at the retired CI services are dropped from the README.

One deliberate reduction in scope: the new workflow runs on ubuntu-latest only. Where a repository previously ran a separate Windows job, that platform's tests are no longer executed in CI, though its platform-specific files are still vet-checked and cross-compiled.

No new tests were written. Where a repository has no test suite, the workflow still builds and vets it. Any judgment calls — pinning an older dependency, replacing one that is no longer maintained, or skipping a test that needs an external binary — are recorded in MODERNIZATION-NOTES.md.

Created by Sourcegraph agentic batch change.

Nothing has been verifying that this repository compiles: its CI config
points at a service that no longer builds it. Replace that with a GitHub
Actions workflow that builds, vets, and race-tests on Go 1.26, and — where
the repository still predates Go modules — add go.mod/go.sum with a
canonical module path and fix the code that no longer compiles on a modern
toolchain.
@janhartman janhartman closed this Sep 1, 2026
@janhartman
janhartman deleted the go-modules-6ec3833b-bb95-4665-aea2-b19268cf924d branch September 1, 2026 12:47
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