Skip to content

Commit 0f4355e

Browse files
committed
chore: prevent uv.lock from being updated by the build system
1 parent 7867c3a commit 0f4355e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Fable.Build/Main.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ Available commands:
122122
let main argv =
123123
let argv = argv |> Array.map (fun x -> x.ToLower()) |> Array.toList
124124

125+
// Prevent uv run and uv sync from updating the uv.lock file
126+
// Updating uv.lock should be done manucally by the user outside of the build system
127+
System.Environment.SetEnvironmentVariable("UV_FROZEN", "true")
128+
125129
SimpleExec.Command.Run(name = "dotnet", args = "tool restore")
126130
SimpleExec.Command.Run(name = "dotnet", args = "husky install --allow-roll-forward")
127131

0 commit comments

Comments
 (0)