Skip to content

Commit

Permalink
Call Pkg.build() to work around TimeZones.jl#331
Browse files Browse the repository at this point in the history
TimeZones has a strange heisenbug where it will sometimes fail to build the TZ data, often appearing in headless systems such as CI and documentation generation.  Apparently a workaround is to explicitly call `Pkg.build()` after instantiation to ensure a successful build, as noted in JuliaTime/TimeZones.jl#331 (comment).
  • Loading branch information
mbauman committed Nov 18, 2022
1 parent 6070ba4 commit b5ebf19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rundocumenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ try
catch err
@error("Error while developing parent directory $(pkgdir):", err)
end
try
Pkg.build()
catch err
@error("Error while building packages:", err)
end
Pkg.status()

documenter_version = v"0.24.10"
Expand Down

0 comments on commit b5ebf19

Please sign in to comment.