我已经浏览了Julia Pkg经理的文档,但是在浏览任何有关符号和颜色的示例或说明时看不到。
今天早上我可能比平时更愚蠢,但是...
黄色的向上箭头是否表示有可用的升级,或者已经升级,或者可以升级,或者应该升级?up不会更改任何内容,并且st每次运行时都会提供相同的信息。
绿色+号表示已经添加了包装,但是为什么绿色不是白色?还是说可以添加软件包?还是应该添加包装?add不会改变,也不会改变st。
红色减号告诉我“您应该删除此程序包”。还是说“它已被删除”或“它不起作用”?
我真正理解的输出的唯一部分是BenchmarkTools软件包已安装,并且版本为v0.4.2(其他外观普通的条目也是如此)。
那里有解释吗?
带有向上箭头的浅黄色条目?表示软件包已升级。
[31c24e10] ? Distributions v0.18.0 ? v0.20.0
Run Code Online (Sandbox Code Playgroud)
品红色的浅箭头向下箭头?表示包装已降级。
[033835bb] ? JLD2 v0.1.2 ? v0.1.1
Run Code Online (Sandbox Code Playgroud)
带加号的浅绿色条目表示已添加软件包。
[c145ed77] + GenericSchur v0.2.3
Run Code Online (Sandbox Code Playgroud)
带有减号的浅红色条目表示包装已卸下。
[54eb57ff] - InteractiveCodeSearch v0.3.1
Run Code Online (Sandbox Code Playgroud)
也有带波浪号的浅黄色条目~。如果软件包的版本没有更改,但是您固定/取消固定了一个软件包(带有pin指示器),或者软件包路径或软件包回购中有更改(例如,当您从分支添加软件包时),它们就会出现。例如,add WebIO#master并且对master分支有新的提交)。
[033835bb] ~ JLD2 v0.1.2 ? v0.1.2 ?
Run Code Online (Sandbox Code Playgroud)
You may also see red (not light red) entries with ? sign. Such entries implies that an unknown operation has occurred. These probably indicate an error or a case which is not handled by Pkg.
You can see how these lines are produced here.
These outputs can appear both under Updating .../Project.toml and Updating .../Manifest.toml.
Project file: a file in the root directory of a project, named
Project.toml(orJuliaProject.toml) describing metadata about the project, including its name, UUID (for packages), authors, license, and the names and UUIDs of packages and libraries that it depends on.Manifest file: a file in the root directory of a project, named
Manifest.toml(orJuliaManifest.toml) describing a complete dependency graph and exact versions of each package and library used by a project.
When you add or update a package, Julia will install or update not only the package itself but also its dependencies (also considering the dependencies of other packages).
When these lines may appear below .../Project.toml and indicate changes directly to your project and when under .../Manifest.toml these indicate change in your project manifest or your Pkg dependency graph.
The st or status Pkg commands will also show the changes to your project file since the last commit (if you are in a git repo). They do not show the available updates or such.
why green not white?
Well, colors add distinction and the default terminal color is used for packages with no change in status and other things.
| 归档时间: |
|
| 查看次数: |
50 次 |
| 最近记录: |