【问题标题】:error: unable to create file bundles/org.eclipse.equinox.p2.tests/testData/ProfilePreferencesTest错误:无法创建文件包/org.eclipse.equinox.p2.tests/testData/ProfilePreferencesTest
【发布时间】:2019-06-09 06:45:12
【问题描述】:

我正在尝试克隆 rt.equinox.p2 但每次都失败并出现以下错误

error: unable to create file bundles/org.eclipse.equinox.p2.tests/testData/ProfilePreferencesTest/DifferentAgent/p2/org.eclipse.equinox.p2.engine/profileRegistry/TestProf
error: unable to create file bundles/org.eclipse.equinox.p2.tests/testData/configAreaToAgent/sharedWithoutBaseAvailable/p2/org.eclipse.equinox.p2.engine/profileRegistry/S
fatal: cannot create directory at 'bundles/org.eclipse.equinox.p2.tests/testData/previousConfigurationFinder/testNewBuildInDifferentFolder/differentConfigurations/org.ecl
Unable to checkout '244078186f2065a1458e2ce46deb8021d82a6b05' in submodule path 'rt.equinox.p2'

按照Eclipse Wiki克隆:

git clone -b master --recursive git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git z

【问题讨论】:

  • 在命令行执行Git命令时是否报错?也许这条路太长了。你有哪个操作系统以及哪个版本的 Git?
  • 是的,我遇到了那个错误,所以作为一种解决方法,我将项目克隆到驱动器的根目录,即 c:\。此外,如果您在上面看到我的克隆 URL,我将其重命名为 z,所以我的结果是 C:/z。这对我有用

标签: eclipse git equinox p2


【解决方案1】:

错误消息中的路径被截断为相同长度,表明总路径长度太长(可能您使用的Windows有这样的限制)。

作为一种解决方法,您可以尝试以下方法之一:

  • 使用根目录(或具有短名称的子目录)作为本地存储库的位置
  • 使用 Eclipse (EGit) 克隆仓库(路径长度限制只存在于命令行)

【讨论】:

    猜你喜欢
    • 2017-04-27
    • 2021-06-10
    • 2011-08-27
    • 2016-02-28
    • 2012-08-22
    • 1970-01-01
    • 1970-01-01
    • 2021-07-06
    • 2013-07-10
    相关资源
    最近更新 更多