我正在尝试将我的manifest.toml
文件提交给具有私人依赖项的私人Julia项目。在manifest.toml
文件中,它具有私有依赖项的项目本地路径,如下所示:
[[Private_Package]]
deps = ["AbstractTrees", "D3Trees", "DataStructures", "Distributions", "LinearAlgebra", "POMDPs", "Parameters", "Printf", "Random", "StatsBase"]
path = "/Users/logankilpatrick/.julia/dev/Private_Package"
uuid = "rand-rand-rand"
version = "0.X.0"
如何将其保存在清单文件中,但要确保它不是本地路径,以便我可以提交到存储库?
答案 0 :(得分:3)
根据@kevbonham的建议,我最终选择了Pkg.add()
。它成功了:
[[Private_Package]]
deps = ["AbstractTrees", "D3Trees", "DataStructures", "Distributions", "LinearAlgebra", "POMDPs", "Parameters", "Printf", "Random", "StatsBase"]
git-tree-sha1 = "x_x_x"
repo-rev = "master"
repo-url = "https://github.com/Private_Package/Private_Package.git"
uuid = "rand-rand-rand-rand-rand"
version = "0.2.0"
谢谢你们@DavidVarela