sbt 1.4 文件夹在哪里?
Where is sbt 1.4 folder?
我正在遵循 sbt eclipse 插件安装指南 here。它告诉我创建:
the global file (for version 0.13 and up) at ~/.sbt/SBT_VERSION/plugins/plugins.sbt
我转到 ~/.sbt/
,但只能看到 1.0
和 boot
文件夹。 1.4
不见了。我错过了什么吗? 1.4 与 1.0 相差很多版本,我想不出文件夹丢失的原因。
如评论中所述,1.0
适用于任何 1.x
版本。如果你查看 Global Settings 的 sbt 文档,你会看到它明确地引用了这个位置:
Settings that should be applied to all projects can go in $HOME/.sbt/1.0/global.sbt
(or any file in $HOME/.sbt/1.0
with a .sbt
extension). Plugins that are defined globally in $HOME/.sbt/1.0/plugins/
are available to these settings.
是的,这可能会令人困惑,但之所以如此,是因为所有 1.x
版本都是二进制兼容的,因此没有理由为每个次要版本的 sbt 创建新目录,它仍然存在在 1.0
。您可以在本期中找到有关它的更多详细信息:sbt/sbt#3858
@eed3si9n:
It's intentional. sbt 1.x adopts Semantic Versioning. [...]
Because of Semantic Versioning, bincompat is now denoted only by the first segment. We should've caught this early on and used 1 or something, but there were some code expecting (Int, Int), so we went with 1.0.
@dwijnand:
As Eugene said, 1.0 is the binary API for the whole 1.x series. In retrospect I should've made it "1.x" (and properly dealt with the existing (Int, Int) type signature) instead of "1.0".
我正在遵循 sbt eclipse 插件安装指南 here。它告诉我创建:
the global file (for version 0.13 and up) at ~/.sbt/SBT_VERSION/plugins/plugins.sbt
我转到 ~/.sbt/
,但只能看到 1.0
和 boot
文件夹。 1.4
不见了。我错过了什么吗? 1.4 与 1.0 相差很多版本,我想不出文件夹丢失的原因。
如评论中所述,1.0
适用于任何 1.x
版本。如果你查看 Global Settings 的 sbt 文档,你会看到它明确地引用了这个位置:
Settings that should be applied to all projects can go in
$HOME/.sbt/1.0/global.sbt
(or any file in$HOME/.sbt/1.0
with a.sbt
extension). Plugins that are defined globally in$HOME/.sbt/1.0/plugins/
are available to these settings.
是的,这可能会令人困惑,但之所以如此,是因为所有 1.x
版本都是二进制兼容的,因此没有理由为每个次要版本的 sbt 创建新目录,它仍然存在在 1.0
。您可以在本期中找到有关它的更多详细信息:sbt/sbt#3858
@eed3si9n:
It's intentional. sbt 1.x adopts Semantic Versioning. [...] Because of Semantic Versioning, bincompat is now denoted only by the first segment. We should've caught this early on and used 1 or something, but there were some code expecting (Int, Int), so we went with 1.0.
@dwijnand:
As Eugene said, 1.0 is the binary API for the whole 1.x series. In retrospect I should've made it "1.x" (and properly dealt with the existing (Int, Int) type signature) instead of "1.0".