fix: keep package hashes indifferent to line endings when ya pkg pulls packages (#4064)

This commit is contained in:
三咲雅 misaki masa 2026-06-20 09:34:41 +08:00 committed by GitHub
parent 84a5be0b6a
commit 6144d2748e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 5 deletions

View file

@ -30,6 +30,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
- Deprecate `backward --far` and `forward --far` in favor of `backward wide` and `forward wide`, respectively ([#4012])
### Fixed
- Keep package hashes indifferent to line endings when `ya pkg` pulls packages
### Improved
- Eliminate hacks in image and UI conflict resolution ([#4022])

View file

@ -238,9 +238,9 @@
}
},
"node_modules/undici": {
"version": "6.25.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.25.0.tgz",
"integrity": "sha512-ZgpWDC5gmNiuY9CnLVXEH8rl50xhRCuLNA97fAUnKi8RRuV4E6KG31pDTsLVUKnohJE0I3XDrTeEydAXRw47xg==",
"version": "6.27.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.27.0.tgz",
"integrity": "sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==",
"license": "MIT",
"engines": {
"node": ">=18.17"

View file

@ -45,11 +45,15 @@ impl Git {
async fn exec(f: impl FnOnce(&mut Command) -> &mut Command) -> Result<()> {
let status = f(Command::new("git").args([
"-c",
"advice.detachedHead=false",
"core.eol=lf",
"-c",
"core.autocrlf=false",
"-c",
"clone.defaultRemoteName=origin",
"-c",
"checkout.defaultRemote=origin",
"-c",
"clone.defaultRemoteName=origin",
"advice.detachedHead=false",
]))
.status()
.await