如何在ember-cli中将ember数据升级到特定的sha? [英] How do I upgrade ember-data to a specific sha in ember-cli?
问题描述
我想将我的ember-cli项目的ember-data版本锁定为此提交,它更新了地图函数签名,并让ED与Ember 1.8一起使用。
我尝试使用 canary指令作为模板并执行此操作,并将其添加到我的 bower.json
:
ember-data: components / ember-data#f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0,
和
决议:{
ember-data:#f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0
}
但出现以下错误:
其他错误详细信息:
致命:引用不是树:f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0
解决方案:
您需要在组件/ ember-data的canary分支,而不是emberjs / ember-data的分支。
在您的情况下,您想要的sha 11715a514ec33ed32438d818ee501865cd4cd2c7
在此处提交
更新您的sha,就可以了!
我如何找到此信息:
components / ember-data github repo每次对ember-data进行提交时,都会在canary分支上自动构建新版本。我找到所需形状的方法是查看提交历史记录并找到同一天,然后包含您想要的sha的评论
I want to lock down my ember-cli project's version of ember-data to this commit, which updates the map function signatures and lets ED work with Ember 1.8.
I tried using the canary instructions as a template and doing this, and adding this to my bower.json
:
"ember-data": "components/ember-data#f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0",
and
"resolutions": {
"ember-data": "#f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0"
}
but I'm getting the following error:
Additional error details: fatal: reference is not a tree: f97d5c9adbabd7f6b4935e614bc95e49b66bb7e0
Solution:
You'll need to reference the sha in the canary branch of components/ember-data, not the one from emberjs/ember-data.
In your case the sha you want is 11715a514ec33ed32438d818ee501865cd4cd2c7
commit here
Update your sha's to that and you're good to go!
How I found this info:
The components/ember-data github repo autobuilds a new version on the canary branch with each commit to ember-data. The way I found the sha you needed is by looking at the commit history and finding the same day, and then the comment that contained the sha you wanted
这篇关于如何在ember-cli中将ember数据升级到特定的sha?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!