Skip to content

feat(internal/cachekey): add cache path/key construction package#177

Open
justinwon777 wants to merge 1 commit into
mainfrom
cachekey-extract
Open

feat(internal/cachekey): add cache path/key construction package#177
justinwon777 wants to merge 1 commit into
mainfrom
cachekey-extract

Conversation

@justinwon777

Copy link
Copy Markdown
Contributor

Adds internal/cachekey with the cache-path builders (ToShortRemote, GetGraphByTreeHash, GetTreehashCachePath, GetComparedTargetsCachePath) that today live in core/common/utils.go. A follow-up PR will switch controller and orchestrator to use this package.

Test Plan

unit tests

Issue

Adds internal/cachekey with the cache-path builders (ToShortRemote,
GetGraphByTreeHash, GetTreehashCachePath, GetComparedTargetsCachePath)
that today live in core/common/utils.go. This is purely additive: no
existing callers are migrated and core/common is untouched, so this
package is currently unused. A follow-up PR will switch controller and
orchestrator over to it and remove the duplicated code from core/common.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@justinwon777 justinwon777 requested review from a team as code owners July 10, 2026 21:28

// ToShortRemote returns the short remote name given a git ssh remote string.
// For example, "git@github:uber/tango" will return "uber/tango".
func ToShortRemote(remote string) string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this conflicts with some of the changes I'm trying to make in #164.... Can we wait till that one is merged, or at least propagate the changes here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'll wait for yours to merge

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw that PR closed, so you're not making changes to these then?

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.

2 participants