Skip to content

Conversation

@jskeet
Copy link
Contributor

@jskeet jskeet commented Aug 22, 2025

This is one new commit on top of #12775.

With this in place, the Spanner diff is only README.md and a "generated by" comment in internal/version.go (as well as go.mod/go.sum).

Note that the release command currently has its own snippet metadata handling code, which is slightly different (basically finding files recursively, instead of predicting the presence of specific files). We'll want to refactor all of the snippet metadata handling code to remove duplication - we should figure out which approach to use.

@jskeet jskeet requested a review from quartzmo August 22, 2025 09:11
@jskeet jskeet requested review from a team as code owners August 22, 2025 09:11
jskeet added 2 commits August 26, 2025 06:24
These were effectively left over from two PRs which crossed.
@jskeet jskeet force-pushed the fix-snippets-and-client-versions branch from 557044f to 2143177 Compare August 26, 2025 07:16
Some APIs have multiple paths with nested elements. For example, in
Spanner we have:

- google/spanner/v1
- google/spanner/adapter/v1
- google/spanner/admin/database/v1
- google/spanner/admin/instance/v1
- google/spanner/executor/v1

Subdirectories are created effectively relative to the module name,
both for clients and snippets. This commit fixes the version handling
for both clients and snippets, for the postprocessor.

This commit does not change the snippet metadata handling for the
release command; that will be handled in a separate commit
(refactoring much of this code into module.go).
@jskeet jskeet force-pushed the fix-snippets-and-client-versions branch from 2143177 to dd7c803 Compare August 26, 2025 07:18
@jskeet jskeet requested review from codyoss and removed request for quartzmo August 26, 2025 07:19
@jskeet
Copy link
Contributor Author

jskeet commented Sep 1, 2025

Closing in favor of #12794.

@jskeet jskeet closed this Sep 1, 2025
@jskeet jskeet deleted the fix-snippets-and-client-versions branch September 23, 2025 09:36
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