-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: tmigot <[email protected]>
- Loading branch information
1 parent
e1609d9
commit b8509fe
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import GitHub, PkgDeps # both export users() | ||
|
||
length(ARGS) >= 1 || error("specify at least one JSO package as argument") | ||
|
||
jso_repos, _ = GitHub.repos("JuliaSmoothOptimizers") | ||
jso_names = [splitext(x.name)[1] for x ∈ jso_repos] | ||
|
||
name = splitext(ARGS[1])[1] | ||
name ∈ jso_names || error("argument should be one of ", jso_names) | ||
|
||
dependents = String[] | ||
try | ||
global dependents = filter(x -> x ∈ jso_names, PkgDeps.users(name)) | ||
catch e | ||
# package not registered; don't insert into dependents | ||
end | ||
|
||
println(dependents) | ||
import GitHub, PkgDeps # both export users() | ||
|
||
length(ARGS) >= 1 || error("specify at least one JSO package as argument") | ||
|
||
jso_repos, _ = GitHub.repos("JuliaSmoothOptimizers") | ||
jso_names = [splitext(x.name)[1] for x ∈ jso_repos] | ||
|
||
name = splitext(ARGS[1])[1] | ||
name ∈ jso_names || error("argument should be one of ", jso_names) | ||
|
||
dependents = String[] | ||
try | ||
global dependents = filter(x -> x ∈ jso_names, PkgDeps.users(name)) | ||
catch e | ||
# package not registered; don't insert into dependents | ||
end | ||
|
||
println(dependents) |