From 531da4a79204d742770db8023a059797ffec3109 Mon Sep 17 00:00:00 2001 From: Muse Sweep Date: Mon, 19 Oct 2026 03:38:28 -0500 Subject: [PATCH 1/2] ci: build and vet the five uncovered pkgs Go modules (#342) chat, database, import, launcher and tea were built by no workflow; map (#338) and identity (#340) rotted silently the same way before getting their own build workflows. One matrix workflow mirrors map-build.yml/identity-build.yml, one job per module. --- .github/workflows/go-modules-build.yml | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/go-modules-build.yml diff --git a/.github/workflows/go-modules-build.yml b/.github/workflows/go-modules-build.yml new file mode 100644 index 0000000000..46e56807d2 --- /dev/null +++ b/.github/workflows/go-modules-build.yml @@ -0,0 +1,67 @@ +name: go modules build + +# Build verification for the small pkgs/{chat,database,import,launcher,tea} +# Go modules (#342). +# +# Nothing built these five modules in CI at all, so a change breaking any +# of them would rot silently — the exact failure that hit pkgs/map (#338) +# and pkgs/identity (#340) before each got its own build workflow. They +# compile and vet clean today; this workflow keeps them that way. One +# matrix job per module so a failure names the module. +# +# pkgs/graph is deliberately excluded: its build failure is #166 and the +# mod-tidy workflow already watches it. pkgs/map and pkgs/identity keep +# their dedicated workflows (identity needs build tags). + +on: + pull_request: + paths: + - "pkgs/chat/**" + - "pkgs/database/**" + - "pkgs/import/**" + - "pkgs/launcher/**" + - "pkgs/tea/**" + - ".github/workflows/go-modules-build.yml" + push: + branches: [main] + paths: + - "pkgs/chat/**" + - "pkgs/database/**" + - "pkgs/import/**" + - "pkgs/launcher/**" + - "pkgs/tea/**" + - ".github/workflows/go-modules-build.yml" + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: go build (${{ matrix.module }}) + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + module: [chat, database, import, launcher, tea] + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version-file: pkgs/${{ matrix.module }}/go.mod + cache-dependency-path: pkgs/${{ matrix.module }}/go.sum + + - name: Build + working-directory: pkgs/${{ matrix.module }} + run: go build ./... + + - name: Vet + working-directory: pkgs/${{ matrix.module }} + run: go vet ./... From 04f9605d3f39c33d9c12d7da4ecb37f066efffe4 Mon Sep 17 00:00:00 2001 From: Muse Sweep Date: Mon, 19 Oct 2026 03:41:40 -0500 Subject: [PATCH 2/2] fix(database): rename bare 'module database' to the src/ module path (#342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the module's own Go 1.21.3, go build fails with 'ambiguous import: found package database in multiple modules' — the root import path 'database' collides with the stdlib database tree. Newer Go accepts it, which hid the break until the new CI workflow's first run. Rename to github.com/developing-today/code/src/database, matching chat/tea/identity; nothing imports this standalone main module. Verified: all five modules build+vet under GOTOOLCHAIN=go1.21.3. --- .github/workflows/go-modules-build.yml | 7 +++++++ pkgs/database/go.mod | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-modules-build.yml b/.github/workflows/go-modules-build.yml index 46e56807d2..1b71782f6f 100644 --- a/.github/workflows/go-modules-build.yml +++ b/.github/workflows/go-modules-build.yml @@ -9,6 +9,13 @@ name: go modules build # compile and vet clean today; this workflow keeps them that way. One # matrix job per module so a failure names the module. # +# Its first run immediately earned its keep: pkgs/database failed on its +# own Go 1.21.3 with "ambiguous import: found package database in +# multiple modules" — its go.mod was the bare `module database`, whose +# root import path collides with the stdlib database tree (newer Go +# accepts it, which hid the break). This PR also renames that module to +# github.com/developing-today/code/src/database, matching chat/tea. +# # pkgs/graph is deliberately excluded: its build failure is #166 and the # mod-tidy workflow already watches it. pkgs/map and pkgs/identity keep # their dedicated workflows (identity needs build tags). diff --git a/pkgs/database/go.mod b/pkgs/database/go.mod index 39cf36cd5c..52ff4a9316 100644 --- a/pkgs/database/go.mod +++ b/pkgs/database/go.mod @@ -1,4 +1,4 @@ -module database +module github.com/developing-today/code/src/database go 1.21.3