简体   繁体   English

Clojure boot-clj中“RELEASE”的含义是什么?

[英]What is the meaning of “RELEASE” in Clojure boot-clj?

I have created a new Clojure boot-clj project using boot-new . 我使用boot-new创建了一个新的Clojure boot-clj项目。 In the 'build.boot' file I see the below line. 在'build.boot'文件中,我看到下面的行。

[org.clojure/clojure "RELEASE"]

What does the "RELEASE" mean in the above context? 在上述背景下,“RELEASE”意味着什么? And what version that dependency points to? 那个依赖指向什么版本? I don't see any files that pass some environment variable or something. 我没有看到任何传递某些环境变量的文件。 If it means "the latest version", won't it cause issues if some backward compatibility breaks? 如果它意味着“最新版本”,如果某些向后兼容性中断,它不会导致问题吗?

This is a Maven feature (like all JVM dependency management tools Boot integrates with the Maven infrastructure). 这是一个Maven功能(就像所有JVM依赖管理工具Boot与Maven基础设施集成一样)。 RELEASE refers to the latest release (not snapshot) version. RELEASE是指最新版本(非快照)版本。

Maven repositories record the latest released version. Maven存储库记录了最新发布的版本。 See for example the metadata for org.clojure/clojure at Maven central, https://repo1.maven.org/maven2/org/clojure/clojure/maven-metadata.xml , at path metadata/versioning/release . 例如,参见Maven central的org.clojure / clojure元数据, https: //repo1.maven.org/maven2/org/clojure/clojure/maven-metadata.xml,路径metadata/versioning/release

An argument can be made for and against using this. 可以支持和反对使用此参数。 For me, pinning of the version and reproducibility are important, so I avoid this notation. 对我来说,固定版本和可重复性很重要,所以我避免使用这种表示法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM