How do I upgrade ember-data to a specific sha in ember-cli?

纵饮孤独 提交于 2019-12-11 11:18:34

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/26635615/how-do-i-upgrade-ember-data-to-a-specific-sha-in-ember-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!