diff options
author | 2023-08-22 17:35:44 -0700 | |
---|---|---|
committer | 2023-08-22 17:35:44 -0700 | |
commit | 0d391312c8ab8ae4f78495982230884f1044a60b (patch) | |
tree | 8095618654e54cc88dfbd830e46ed24cc39aeb7e | |
parent | d3f55e5fb6e91fc47fa5a9922f3617d7f64c3f68 (diff) | |
download | bun-dave/postinstall.tar.gz bun-dave/postinstall.tar.zst bun-dave/postinstall.zip |
windows newline handling*dave/postinstall
*i did not test it
-rw-r--r-- | src/install/lockfile.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index 93c74e9e1..056daa9f9 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -4301,8 +4301,8 @@ const default_trusted_dependencies = brk: { while (i < data.len) : (i += 1) { if (data[i] == '\n' or data[i] == '\r') break; } + while (data[i] == '\r' or data[i] == '\n') i += 1; const line_slice = data[line_start..i]; - i += 1; if (line_slice.len == 0) break; if (map.len == max_values) { @compileError("default-trusted-dependencies.txt is too large, please increase 'max_values' in lockfile.zig"); |