Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

component-update: doesn't verify that new tag is component-compatible #583

Open
stephenmathieson opened this issue Jul 3, 2014 · 6 comments

Comments

@stephenmathieson
Copy link
Contributor

i've got a project using reworkcss/css-parse. version 2 dropped support for component for some stupid reason, so we fail with:

error : no remote found for dependency "reworkcss/[email protected]". run `component open troubleshooting` for help.
@jonathanong
Copy link
Contributor

it doens't check whether the repository 404d or the component.json 404d. a better error message would again require another HTTP request, which i don't think it's worth it

@timaschew
Copy link
Member

@netpoetica @tetsuo what do you think?

@tetsuo
Copy link

tetsuo commented Dec 8, 2014

update changes component.json file even if the latest version is not component-compatible. that's a bug indeed.
keeping component.json as it is and showing an error message will work out as expected

@netpoetica
Copy link

@tetsuo How do you see an update changing the component.json file? I might be missing something on that one

An error in this situation is expected behavior - if no component.json is found, component should not attempt to treat the repo like a valid remote. I agree with Ong that adding an extra HTTP request is overkill, just to provide a more accurate error message.

What about changing the message of all 404 errors (whether remote or component.json is not found) to just say

error : no valid remote found for dependency  ... ...

@tetsuo
Copy link

tetsuo commented Dec 9, 2014

@netpoetica here https://github.com/componentjs/update.js/blob/master/lib/index.js#L38 there is some weirdness going over there :) enigma of @jonathanong

@jonathanong
Copy link
Contributor

pre-mz co hackage :D

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

No branches or pull requests

5 participants