Skip to content

fix: bump go-api-libs/api with cassette - #94

Merged
MarkRosemaker merged 1 commit into
mainfrom
fix/bump-api-with-cassette
Nov 27, 2026
Merged

MarkRosemaker merged 1 commit into
mainfrom
fix/bump-api-with-cassette

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Owner

Fixes #93

The scheduled "update dependencies" run bumped cassette, which no longer has OptionalHeaders since MarkRosemaker/cassette#9. It left go-api-libs/api at a version from before go-api-libs/api#12, and that version still calls OptionalHeaders, so the vendored apitest failed to build:

vendor/github.com/go-api-libs/api/apitest/replay.go:38:12: undefined: cassette.OptionalHeaders

This PR bumps go-api-libs/api to its current master together with cassette and openapi-flatten. Its replay ignores Accept without needing OptionalHeaders. I reproduced the failure by bumping only cassette and flatten, as the scheduled run did, and confirmed it goes away with api bumped as well. make ready passes.

Why the run skipped api: codegen imports go-api-libs/api only from golden_test.go. render/imports.go mentions it only as strings. The run's go get -u ./... has no -t, so it never updates a module that only tests import. The same thing will happen again whenever cassette and api change together, unless the run also passes -t.


Generated by Claude Code

The scheduled update bumped cassette, which no longer has
OptionalHeaders, but left go-api-libs/api at a version that still calls
it, so the build broke. api is imported only by golden_test.go, and the
update's go get -u ./... skips what only tests import. Bump api, which
replays without OptionalHeaders, with cassette and openapi-flatten.

Fixes #93

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit 924ccc5 into main Nov 27, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the fix/bump-api-with-cassette branch November 27, 2026 00:16
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.

Build fails after "update dependencies": github.com/go-api-libs/api/apitest

2 participants