From dd1bbaf297058abf9882f1b50a0508c46c5438e4 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Fri, 28 Oct 2022 09:20:31 -0500 Subject: [PATCH] Update juliaw --- juliaw | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/juliaw b/juliaw index fb8541d..b78bc72 100755 --- a/juliaw +++ b/juliaw @@ -1,5 +1,5 @@ #!/bin/bash -# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization +# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment # Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. @@ -47,7 +47,14 @@ project = TOML.parsefile("Project.toml") manifest = TOML.parsefile("Manifest.toml") deps = Symbol[] for dep in keys(project["deps"]) - if "path" in keys(manifest[dep][1]) + if dep in keys(manifest) + # Up to Julia 1.6 + dep_entry = manifest[dep][1] + else + # Julia 1.7+ + dep_entry = manifest["deps"][dep][1] + end + if "path" in keys(dep_entry) println(" - \$(dep) [skip]") else println(" - \$(dep)")