fix(core): branch-keyed repository cache with gated reference readiness (#38759)
This commit is contained in:
parent
a85d8d23aa
commit
065dc274ec
7 changed files with 89 additions and 52 deletions
|
|
@ -17,6 +17,12 @@ describe("Repository", () => {
|
|||
label: "owner/repo",
|
||||
})
|
||||
expect(Repository.cachePath("/cache", reference)).toBe(path.join("/cache", "github.com", "owner", "repo"))
|
||||
expect(Repository.cachePath("/cache", reference, "main")).toBe(
|
||||
path.join("/cache", "github.com", "owner", "repo@main"),
|
||||
)
|
||||
expect(Repository.cachePath("/cache", reference, "feature/x")).toBe(
|
||||
path.join("/cache", "github.com", "owner", "repo@feature%2Fx"),
|
||||
)
|
||||
expect(Repository.cacheIdentity(reference)).toBe("github.com/owner/repo")
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue