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

Is ignore in bower.json necessary? #1388

Closed
rayshan opened this issue Jul 4, 2014 · 12 comments
Closed

Is ignore in bower.json necessary? #1388

rayshan opened this issue Jul 4, 2014 · 12 comments

Comments

@rayshan
Copy link
Member

rayshan commented Jul 4, 2014

When installing angular 1.3.0-beta.14, I received below warning:

bower invalid-meta  angular is missing "ignore" entry in bower.json

However due to the use of a very stripped down repo specifically for bower, there's no point of ignoring anything:
https://github.com/angular/bower-angular

Is it necessary to warn bower user that the package's bower.json is "invalid" if it's missing ignore key?

@sheerun
Copy link
Contributor

sheerun commented Jul 4, 2014

The same for main field, because some components are JS/CSS libraries without main file.

There always will be some false positives, and I have no idea how to resolve them.

For now I think it's better to show this message so developers notice the problem.

@rayshan
Copy link
Member Author

rayshan commented Jul 4, 2014

I see. I agree it's a warning not an error so probably not a big deal. Seems like currently the best practice is just to define a bower.json and have an empty ignore key if nothing is to be ignored. Thanks.

@rayshan rayshan closed this as completed Jul 4, 2014
@piranna
Copy link

piranna commented Jul 22, 2014

grunt is aborting due it's finding warnings, but setting a main or empty ignore fields doesn't fix it, how it's supposed to work this issue?

@sheerun
Copy link
Contributor

sheerun commented Jul 22, 2014

It shouldn't abort due to warnings :) Warnings are warnings, not errors.

@piranna
Copy link

piranna commented Jul 22, 2014

"Aborted due to warnings", says. Anyway we have fixed the problems and grunt could be able to run :-)

mctaggaj pushed a commit to mctaggaj/angular-numeraljs that referenced this issue Aug 15, 2014
avoid 'invalid-meta angular-bootstrap-affix is missing "ignore" entry in bower.json' when installing via bower. As suggested here: bower/bower#1388
mctaggaj pushed a commit to mctaggaj/angular-translate that referenced this issue Aug 25, 2014
…ng "ignore" entry in bower.json' when installing via bower. As suggested here: bower/bower#1388
knalli pushed a commit to knalli/angular-translate that referenced this issue Aug 26, 2014
…ng "ignore" entry in bower.json' when installing via bower. As suggested here: bower/bower#1388
0x-r4bbit added a commit to angular-translate/angular-translate that referenced this issue Sep 16, 2014
* canary: (23 commits)
  docs(overview): fix typo in English conceptual overview
  chore(): Fix typo
  chore(tests): fix typo in midway setup
  fix(service): use hasOwnProperty of prototype #638
  fix(service): add shim for indexOf and trim #638
  fix(bower.json): Avoid 'invalid-meta angular-bootstrap-affix is missing "ignore" entry in bower.json' when installing via bower. As suggested here: bower/bower#1388
  fix(docs): fix example in directive ngdoc-documentation (fixes #678)
  Update CONTRIBUTING.md
  fix(translateService): fixup/rewrite for b48f6bb (specs)
  fix(translateService): prevent multiple XHR calls
  fix(directive): improve the cloak-directive's performance
  fix(directive): change event for listening to `$translateChangeEnd`
  fix(service): load fallback languages also for instant and filter
  fix(storage): fixup 75504cb
  fix(storage): fix 'DOM Exception 18' at feature detection
  chore(): update to latest bower (invalid transient dependencies)
  fix(package.json): remove unnecessary relative paths from package.json
  fix(service): addition of preferred language to fallback language stack is now preventing duplication if already contained in the fallback stack feat(service): preferredLanguage can now be set during runtime
  fix(demo): fixes wrong method call in demo
  fix(docs): Fix typo
  ...
mattrobenolt added a commit to getsentry/sentry-javascript that referenced this issue Sep 24, 2014
@ahacking
Copy link

When is this going to be fixed?

Currently bower complains and returns a non-zero exit status when using a url to a repository index.js which has no bower.json. Bower generates a .bower.json which it then complains about.

This ruins deploy scripts that expect a non-zero (ie non failing) bower install. Why is this 'ignore' key even mandatory at all? Just seems like a bad idea to require the key to begin with.

RichardLitt added a commit to RichardLitt/bower-angular that referenced this issue Oct 10, 2014
acrobat added a commit to uxsolutions/bootstrap-datepicker that referenced this issue Dec 18, 2014
ExplodingCabbage added a commit to ExplodingCabbage/ifvisible.js that referenced this issue Mar 4, 2015
ExplodingCabbage added a commit to ExplodingCabbage/ifvisible.js that referenced this issue Mar 4, 2015
ExplodingCabbage added a commit to ExplodingCabbage/ifvisible.js that referenced this issue Mar 4, 2015
@perk11
Copy link

perk11 commented Mar 25, 2015

I agree with @ahacking here, this is not an error so there's no point in returning non-zero exit code when this happens.

@sheerun
Copy link
Contributor

sheerun commented Mar 25, 2015

Well, warning is OK, but non-zero status is a bug if it actually happens. I need to confirm.

@sheerun sheerun reopened this Mar 25, 2015
@perk11
Copy link

perk11 commented Mar 25, 2015

Sorry, false alarm. I tested it and it doesn't actually happen, status code returned is 0, it's the appearance of warning that made our deploy system think it's a failure.

@sheerun sheerun closed this as completed Mar 25, 2015
HeroicEric added a commit to HeroicEric/dragula that referenced this issue Apr 14, 2015
@tregusti
Copy link

tregusti commented May 6, 2015

But why even output a warning? I cannot understand why something that is optional generates a warning. It seems like very strange logic.

@demisx
Copy link

demisx commented May 9, 2015

+1. Don't see a point to generate such warning. I have nothing to ignore in my repo and adding an empty ignore attribute to get rid of it is just an unnecessary overhead IMHO.

@r-cohen
Copy link

r-cohen commented Jun 10, 2015

++
ignore absence should be ignored, not warned.

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

No branches or pull requests

8 participants