Skip to content
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

通过tag url加载的包如何管理依赖 #315

Open
otakustay opened this issue Jan 12, 2015 · 3 comments
Open

通过tag url加载的包如何管理依赖 #315

otakustay opened this issue Jan 12, 2015 · 3 comments

Comments

@otakustay
Copy link
Member

我有foobar两个包,都不在edp registry上,使用edp import [tag url]管理,现在foo要依赖bar,那么在foopackage.json中要怎么写?

@chriswong
Copy link
Member

npm 的 package.json 貌似是可以配 { type: 'git', url: '...' } 这样

@leeight
Copy link
Member

leeight commented Jan 12, 2015

直接写 bar: 'xxx.tar.gz'

@otakustay
Copy link
Member Author

刚沟通这样,因为bar会升级,升级后的url是不一样的,所以其实foo只能依赖特定一个版本,而不能是某个版本区间

这个问题我原本想使用方能不能通过一些override技术来指定某些包的地址,这样把版本决定权交到项目里去

不过看来会是个比较长远的话题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants