mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Fix line endings issue with Notice file (#17417)
This commit is contained in:
committed by
GitHub
parent
daccf4d6d1
commit
00b5b2045f
@@ -72,6 +72,7 @@ async function getDependencyLicense(depName, depVersion) {
|
|||||||
if (licenseFile) {
|
if (licenseFile) {
|
||||||
try {
|
try {
|
||||||
licenseContent = await fs.readFile(licenseFile, 'utf-8');
|
licenseContent = await fs.readFile(licenseFile, 'utf-8');
|
||||||
|
licenseContent = licenseContent.replace(/\r\n/g, '\n');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`Warning: Failed to read license file for ${depName}: ${e.message}`,
|
`Warning: Failed to read license file for ${depName}: ${e.message}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user