MCPcopy Create free account
hub / github.com/effect-app/libs / resolveRequestedRef

Function resolveRequestedRef

packages/cli/src/sync-effect-app-subtree.ts:53–53  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

51const isFullSha = (ref: string) => /^[0-9a-f]{40}$/i.test(ref)
52
53const resolveRequestedRef = (ref: string) => ref === "latest" ? "main" : ref
54
55const parsePackageVersion = (source: string, packagePath: string) => {
56 const parsed: unknown = JSON.parse(source)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…