# Sporadic error when installing a package

**URL:** <https://discourse.julialang.org/t/sporadic-error-when-installing-a-package/128809>\
**Category:** Package Management\
**Tags:** question\
**Created:** [May 7, 2025, 4:05pm UTC](https://discourse.julialang.org/t/sporadic-error-when-installing-a-package/128809 "2025-05-07T16:05:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Bergel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexandre_bergel/32/37951_2.png) [@Alexandre\_Bergel](https://discourse.julialang.org/u/Alexandre_Bergel)\
**Post date:** [May 7, 2025, 4:05pm UTC](https://discourse.julialang.org/t/sporadic-error-when-installing-a-package/128809/1 "2025-05-07T16:05:50Z")

</div>

[ReLint](https://github.com/RelationalAI-oss/ReLint.jl) is run on every single commit in my organization. It works great, however, sometimes some unexplainable error happens, e.g.,:

```julia
ERROR: Error when installing package StructTypes:
IOError: readdir("/home/runner/.julia/packages/StructTypes/AK4aM/.github/workflows"): no such file or directory (ENOENT)
Stacktrace:
 [1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
   @ Base ./task.jl:931
 [2] wait()
   @ Base ./task.jl:995
 [3] wait(c::Base.GenericCondition{ReentrantLock}; first::Bool)
   @ Base ./condition.jl:130
 [4] wait
   @ ./condition.jl:125 [inlined]
 [5] take_unbuffered(c::Channel{Tuple{String, Vector{String}, Vector{String}}})
   @ Base ./channels.jl:494
 [6] take!
   @ ./channels.jl:471 [inlined]
 [7] iterate(c::Channel{Tuple{String, Vector{String}, Vector{String}}}, state::Nothing)
   @ Base ./channels.jl:613
 [8] set_readonly(path::String)
   @ Pkg /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/utils.jl:59
 [9] (::Pkg.Operations.var"#47#52"{Bool, Pkg.Types.Context, Tuple{SubString{String}, Dict{Base.UUID, Base.SHA1}}, Channel{Any}, Channel{@NamedTuple{pkg::Pkg.Types.PackageEntry, urls::Set{String}, path::String}}})()
   @ Pkg.Operations /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:853
Stacktrace:
 [1] pkgerror(::String, ::Vararg{String})
   @ Pkg.Types /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
 [2] macro expansion
   @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:873 [inlined]
 [3] macro expansion
   @ ./task.jl:479 [inlined]
 [4] download_source(ctx::Pkg.Types.Context; readonly::Bool)
   @ Pkg.Operations /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:814
 [5] download_source
   @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:790 [inlined]
 [6] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool, allow_autoprecomp::Bool, kwargs::@Kwargs{})
   @ Pkg.API /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/API.jl:1871
 [7] instantiate
   @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/API.jl:1773 [inlined]
 [8] instantiate(; kwargs::@Kwargs{})
   @ Pkg.API /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Pkg/src/API.jl:1772
 [9] top-level scope
   @ none:3

```

Any idea what is happening?

---

<div class="post-metadata">

**Author:** ![Alexandre\_Bergel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexandre_bergel/32/37951_2.png) [@Alexandre\_Bergel](https://discourse.julialang.org/u/Alexandre_Bergel)\
**Post date:** [May 14, 2025, 8:29pm UTC](https://discourse.julialang.org/t/sporadic-error-when-installing-a-package/128809/2 "2025-05-14T20:29:35Z")

</div>

Here is an update. I suspect that multiple concurrent dependent installations are taking place. We use [pre-commit](https://pre-commit.com/) to run [ReLint](https://github.com/RelationalAI-oss/ReLint.jl) on our master branch, and multiple concurrent jobs are running ReLint.
