-
Notifications
You must be signed in to change notification settings - Fork 128
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
Odd changes in dependency hashes #161
Comments
I am glad you are checking I think the hashes you want are in the map_chr(
names(dp$hashes_of_dependencies),
function(x){
my_config$cache$get_hash(key = x, namespace = "kernels")
}
) %>%
set_names(names(dp$hashes_of_dependencies)) I think this is another change from #129, which introduced some new vocabulary. In In e58afd1, I did change the behavior of tidy_command() (previously Whether or not any of this explains what you see, I do not plan to revert any changes, so I am closing this as an issue. Of course, let's keep talking on the thread. I apologize if I broke your project yet again. |
I rebuilt my project from scratch after #129 (I deleted .drake), so that shouldn't explain this. I do see the hashes match when using your code. However, I see that the target is outdated when using |
If the dependency hashes match, then it could be e58afd1 after all. Does |
Those also match: > dependency_profile("my_target", my_config)$cached_command ==
+ drake:::tidy_command(my_config$plan$command[my_config$plan$target == "my_target"])
[1] TRUE
> |
Strange. Is |
My bad. I was looking at a downstream target at my last comment. > identical(dependency_profile("my_other_target", my_config)$cached_command,
+ drake:::tidy_command(my_config$plan$command[my_config$plan$target == "my_other_target"]))
[1] FALSE Any suggested workaround? A migrate function? |
In 2540a65, I modified the supporting functions of migrate_drake_project() to cover projects from the latest CRAN release. To build in migration functions to accommodate changes in the development version probably would probably be tedious and impractical. I am sorry, but you may just have to manually cache the new commands, something like the following. for(target in my_config$plan$target){
new_command <- my_config$plan$command[my_config$plan$target == target] %>%
drake:::tidy_command()
my_config$cache$set(key = target, value = new_command, namespace = "commands")
} I hate to make changes that break back compatibility, even between commits of the development version. In this case, however, relying on |
No worries! I was mostly concerned about some unknown fundamental problem and this is not that. Thanks heaps, Will |
You're welcome, Kendon. I am glad you spoke up. |
@wlandau-lilly, you need to unquote the |
Yes, fixed. |
Unable to reproduce this but it is concerning. Was there a recent change that might have caused this?
The text was updated successfully, but these errors were encountered: