MCPcopy Create free account
hub / github.com/apache/tvm / getFileHash

Method getFileHash

web/src/artifact_cache.ts:294–302  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

292 }
293
294 private async getFileHash(url: string): Promise<string | null> {
295 if (/\/resolve\//.test(url)) {
296 const pointerHash = await this.extractHashFromPointer(url);
297 if (pointerHash) {
298 return pointerHash;
299 }
300 }
301 return null;
302 }
303
304 private async extractHashFromPointer(url: string): Promise<string | null> {
305 const rawUrl = url.replace(/\/resolve\//, "/raw/");

Callers 1

resolveHashDescriptorMethod · 0.95

Calls 2

testMethod · 0.45

Tested by

no test coverage detected