-
Notifications
You must be signed in to change notification settings - Fork 304
deps set to * fail to fetch when no public tag is available #602
Comments
👍 |
-1 Seems normal to me. If there is no release/tag available why should it take master? |
-1 I agree with @micky2be, but I would also point out that I don't want to add magic, but I also think this edge-case should be documented. |
@micky2be @dominicbarnes I'm saying this because it's how My suggestion would be for For instace, the repo I mentioned component/aurora is used by some other component in my dependency hierarchy. The only way I can think of to keep these working when migrating to |
This is an example of a smart default, I'm all for this. |
to use so if this breaks for some components, it's a signal to pin the
we will fix that (add tags) for all our components within the component orga. |
@timaschew, I agree using |
That is not a reason to support these bad things ^^
in which context? you mean when upgrading component from 0.19 to 1.0? But that I think it's not really expectably when you are on the master using
Yes, it is :) |
@timaschew I agree with spirit behind the more restrictive approach to the use of
That would happen as well if someone publishes a new version without thorough testing. It's not a matter of tag/no tags, it's a matter of being mindful about what code is pushed/tagged. And let's keep in mind that what I suggest is only for those repos with the very rare -though real- case of not having public tags.
I believe nothing is actually guaranteed to work on the open source community. All softare is provided 'AS IS', as can be read in every other license. Wrapping it up:
That being said, maybe supporting the very specific case of This is all meant to improve adoption of component 1. The more rocks on the road someone meets when migrating is one more reason to drop component. |
At this point, this is enough of a reason for me to disregard any downside of supporting a |
The frequency matters, in a active project you commit and push more often than release a new tag. okay so let's do the fallback and make a console.warning with a deprecated note. and tell the people to pin it or change it to |
That sounds awesome! Thanks for the support 👍 |
So implementation for this would be in resolver.js correct? Any volunteers? |
yep :) I found and changed it already, need to do some test, then I'll push it should be this function: https://github.com/componentjs/resolver.js/blob/master/lib/dependencies.js#L126-L150 |
hmm I can't reproduce this, that's strange because I run into this issue as well some month ago |
@gvilarino master is used as fallback, here is the line: https://github.com/componentjs/resolver.js/blob/3b4a7a04663e7b99d4a5ec99a414fec6b04a0384/lib/semver.js#L141 So I close this issue unless you give me a script to reproduce the behaviour you described. |
Hey thanks @timaschew ! Close away if you will; I'll try to provide a script that repros on rc5 |
isn't it just So the issue should be open if we can reproduce what you have reported in your first post. |
I understand and that makes a lot of sense. I'll try to make a repro situation later today and share it here |
Well, that's pretty weird. It should fail as it did before, with a simple empty project and the following in their {
"name": "foo",
"version": "0.0.1",
"description": "foo",
"dependencies": {
"component/aurora": "*"
}
} But it doesn't. Maybe the github API is actually working differently. I say just close it. |
Using
1.0.0-rc5
.Dependencies specified with
*
can't be found since thetags
array from github is empty.Try with this: component/aurora for example. Won't fetch
0.0.1
which is themaster
version, because there are no tags available.The workaroun is to use
master
instead of*
for these repos; the downside is that there are a LOT of these being called under officialcomponent
repos, and I've had to fork out every dependency in my tree to fix this.Maybe there's an easier way? I can't seem to find any documentation/issue about this, sorry.
The text was updated successfully, but these errors were encountered: