-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a test that is pinned to a specific commit of the General registry? #2445
Comments
@IanButterworth I know you recently improved a bunch of stuff regarding how we cache the General registry in the Pkg test suite, so I'm wondering if you have any thoughts on how I might be able to get (and cache) a specific commit of the registry? The trick is that I only want to use this specific commit of the registry for a specific test. For all other tests, we can just use the latest General registry. |
There might be a simpler way, but something like this? isolate(loaded_depot=false, linked_reg=true) do
this_gen_reg_path = joinpath(last(ENV["DEPOT_PATH"]), "registries", "General")
rm(this_gen_reg_path) # delete the symlinked reg dir
# Then clone General to the same path and do stuff?
end |
Thanks! I get a |
Take a look at the changes I made to the |
Also, I needed to add |
I want to add a test to the Pkg test suite that involves instantiating a project that has a direct dependency (Example.jl) that does not have a
[compat]
entry.This test is subject to breakage in the future. Therefore, I would like to run this test using a specific commit of the General registry. Since commits are immutable, this ensures that the test will not break in the future.
What is the best way to use a specific commit of the General registry in a
Utils.isolate()
test?cc: @IanButterworth @KristofferC
The text was updated successfully, but these errors were encountered: