If you don’t normally use Manifest files in your workflow it’s probably easiest to go with monkey patching for a temporary solution, if you can do that in a way which is sufficiently clean for your needs. (I’ve been doing that on and off and sometimes precompilation has been an issue.)
For our data processing pipeline we have a repository with a directory containing Project.toml, Manifest.toml and a number of scripts, all starting with
using Pkg
if !isinteractive()
Pkg.activate(@__DIR__)
Pkg.instantiate()
end
This works great for reproducibility and would easily allow defining a custom version of some dependency in the manifest.