从超过 3 个月的 Drake 版本升级的最佳方法是什么? [英] What's the best way to upgrade from a Drake version that is >3 months old?
问题描述
我有一些使用旧版 Drake 的代码,我想升级到更新的版本.
I have some code using an older version of Drake, and I'd like to upgrade to a much newer version.
我应该如何进行?
推荐答案
TL;DR
要获得最快但信息量最大的升级方式,您应该在相隔 3 个月或更短的版本之间逐步升级:
https://drake.mit.edu/release_notes/release_notes.html
对于需要删除的稳定公共 API,我们尝试将旧 API 标记为 已弃用大约3个月的时间;这些弃用应包括引导您使用更新 API(或替代方案)的警告.在 C++ 中,这应该显示为构建或运行时警告.在 Python 代码中,它应该显示为运行时警告.在 Bazel 代码中,它应该在构建过程中显示出来.
For stable public API that needs to be removed, we try to mark old API as deprecated for about a 3-month period; these deprecations should include warnings that direct you towards newer API (or alternatives). In C++, this should show up as a build or runtime warning. In Python code, it should show up as a runtime warning. In Bazel code, it should show up during build process.
目前(2021-04),Drake 每月发布一次,所以一般你只需要跳过 3 个次要版本.
At present (2021-04), Drake releases on a monthly cadence, so generally you just need to skip 3 minor versions.
这篇关于从超过 3 个月的 Drake 版本升级的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!