Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Jul 17, 2024
1 parent ac7d850 commit 2f62da4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ResearchSoftwareMetadata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Read a `Project.toml` file in and return it in its canonical order in
an OrderedDict.
"""
function read_project()
@error pwd()
dir = readchomp(`$(Git.git()) rev-parse --show-toplevel`)
@error dir
file = joinpath(dir, "Project.toml")
project_d = TOML.parsefile(file)
project = OrderedDict{String, Any}()
Expand Down Expand Up @@ -214,7 +216,10 @@ function crosswalk(; category = nothing, keywords = nothing, build = false,

repos = replace.(urls, r"^.*/([^/]+)$" => s"\1")

@error pwd()
@error git_dir
file = joinpath(git_dir, "codemeta.json")
@error file
codemeta = isfile(file) ?
JSON.parsefile(file, dicttype = OrderedDict) :
OrderedDict{String, Any}()
Expand Down

0 comments on commit 2f62da4

Please sign in to comment.