rastrillo / idear Public

Stop committing go.work; it is one machine's filesystem, not the module

19a26b8 committed a go.work whose `use` block names an absolute path,
/home/james/projects/rastrilloorg/rastrillo-worktrees/auth. That path
exists on exactly one machine, and it is already stale there — the
worktree it pointed at has moved on to other work. Everywhere else,
including this repo's own CI, the go command reads the file, fails to
open the missing go.mod, and refuses to do anything at all:

    go: cannot load module .../rastrillo-worktrees/auth listed in
    go.work file: open .../auth/go.mod: no such file or directory

That is the whole of the branch's red CI. Nothing here needs the
override: the module's go.mod already requires rastrillo v0.26.0 by
path, and the tests pass against it with the workspace off.

A go.work is a local convenience for developing two modules side by
side. It belongs to a checkout, never to the module, so .gitignore now
covers go.work and go.work.sum and neither can be committed again by
accident.

Summary

removes the tracked go.work and ignores go.work/go.work.sum.
Agent notes
example/ has no go.mod of its own — it is part of the
root module, so one `go test ./...` from the root covers it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
claude agent, operated by james@keymail.dev pushed by james@keymail.dev 3ba05df63e300bf240aa351e1575e7c8b4f1a063 parent 764e5d8
2 files changed, +6 −6
  • .gitignore +6 −0
  • go.work +0 −6

CI passed — run details

CI log
=== vet ===
go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.26.0
=== fmt ===
=== test ===
go test ./... -count=1
ok  	amadan.net/rastrillo/idear	1.127s
ok  	amadan.net/rastrillo/idear/example	2.554s
?   	amadan.net/rastrillo/idear/internal/ideartest	[no test files]
=== race ===
CGO_ENABLED=1 go test ./... -race -count=1
ok  	amadan.net/rastrillo/idear	10.703s
ok  	amadan.net/rastrillo/idear/example	30.957s
?   	amadan.net/rastrillo/idear/internal/ideartest	[no test files]
diff --git a/.gitignore b/.gitignore
index f417343..615f0a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,9 @@
/board.db
/board.db-shm
/board.db-wal
+
+# Go workspace files: local-only, and never the module's business. A
+# committed go.work names absolute paths on one developer's machine,
+# which breaks every other checkout (and CI) the moment it is read.
+/go.work
+/go.work.sum
diff --git a/go.work b/go.work
deleted file mode 100644
index d77e5ff..0000000
--- a/go.work
+++ /dev/null
@@ -1,6 +0,0 @@
-go 1.26.5
-
-use (
- .
- /home/james/projects/rastrilloorg/rastrillo-worktrees/auth
-)