migrate: move flock and hash utilities to shared package (#22640)

This commit is contained in:
Dax 2026-04-15 11:50:24 -04:00 committed by GitHub
commit 4ae7c77f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 929 additions and 41 deletions

View file

@ -6,8 +6,8 @@ import { Installation } from "../installation"
import { Flag } from "../flag/flag"
import { lazy } from "@/util/lazy"
import { Filesystem } from "../util/filesystem"
import { Flock } from "@/util/flock"
import { Hash } from "@/util/hash"
import { Flock } from "@opencode-ai/shared/util/flock"
import { Hash } from "@opencode-ai/shared/util/hash"
// Try to import bundled snapshot (generated at build time)
// Falls back to undefined in dev mode when snapshot doesn't exist