Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rubygems:可以在gem发行版中使用符号链接吗?_Ruby_Windows_Rubygems - Fatal编程技术网

Rubygems:可以在gem发行版中使用符号链接吗?

Rubygems:可以在gem发行版中使用符号链接吗?,ruby,windows,rubygems,Ruby,Windows,Rubygems,我是一个宝石作家。在gem文件中使用符号链接可以吗,还是在Windows上会中断?您需要完全指定路径,而不是使用符号链接 如果您的gems需要查找文件,请查看以下内容: File.join Pathname the variable __FILE__ 我想它可能会破裂。另外,我很好奇,你需要符号链接做什么?@Sergio这是我博客文章的研究:我想知道你是否可以将文件从Git子模块符号链接到vendor/assets目录。(正如Joel指出的那样,因为你不能,所以我建议使用rake任务来完

我是一个宝石作家。在gem文件中使用符号链接可以吗,还是在Windows上会中断?

您需要完全指定路径,而不是使用符号链接

如果您的gems需要查找文件,请查看以下内容:

 File.join
 Pathname
 the variable __FILE__

我想它可能会破裂。另外,我很好奇,你需要符号链接做什么?@Sergio这是我博客文章的研究:我想知道你是否可以将文件从Git子模块符号链接到vendor/assets目录。(正如Joel指出的那样,因为你不能,所以我建议使用rake任务来完成这个任务。)这个问题没有答案,无论是否可能,或者它在不同的系统中是如何工作的。我来这里是因为我的最终发行版中似乎没有包含符号链接。我并不真正担心指定/计算路径。我只是想弄清楚,将一些资产符号化是否足够,或者我是否必须对它们进行cp。是的,你应该复制它们。就在昨晚,我正在帮助一位gem用户诊断这种问题——他被卡住了,因为gem试图将一个资产文件符号化,而不是将其复制到资产中/