amrali / bootstrap-select-meteor

Meteor packaging for Bootstrap-Select
11 stars 3 forks source link

Unable to add current package - "There was a problem checking out tag: v1.5.4" #7

Closed udondan closed 10 years ago

udondan commented 10 years ago

I have problems adding the current release of this package:

$ mrt add bootstrap-select
smart.json changed.. installing from smart.json

✓ bootstrap-select
    tag: https://github.com/amrali/bootstrap-select-meteor.git#v1.5.4

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:158
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: v1.5.4

It first looks like it went alright but then throws the above error message. This is a permanent error, I tried it multiple times. Can't see what is wrong there.

No problems with older versions.

$ mrt add bootstrap-select --pkg-version 1.5.2
smart.json changed.. installing from smart.json

✓ bootstrap-select
    tag: https://github.com/amrali/bootstrap-select-meteor.git#v1.5.2

Done installing smart packages
amrali commented 10 years ago

I'm unable to reproduce this issue.

amr::Dreadnought test $ mrt add bootstrap-select
✓ bootstrap-select
    tag: https://github.com/amrali/bootstrap-select-meteor.git#v1.5.4

Done installing smart packages

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

bootstrap-select: A custom select/multiselect for @twitter bootstrap using button dropdown.
udondan commented 10 years ago

Yeah, this looks weird. I don't even know what could possibly go wrong there... I created a new test project to make sure it's not a conflict in my other project. Same thing :-/

me:~$ meteor create testproject
testproject: created.

To run your new app:
   cd testproject
   meteor
me:~$ cd testproject/
me:~/testproject$ mrt add bootstrap-select
✓ bootstrap-select
    tag: https://github.com/amrali/bootstrap-select-meteor.git#v1.5.4

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:158
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: v1.5.4
amrali commented 10 years ago

Maybe it is a Meteorite bug, what's the output of mrt --version?

udondan commented 10 years ago

Good point. I upgraded to the recent version. That didn't fix it but it is a little more chatty now:

✓ bootstrap-select
    tag: https://github.com/amrali/bootstrap-select-meteor.git#v1.5.4
ERROR: 1 Command failed: error: pathspec 'v1.5.4' did not match any file(s) known to git.

STDOUT:  

STDERR: error: pathspec 'v1.5.4' did not match any file(s) known to git.

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:181
            self.checkoutType + ": " + (self.commit || self.head);
                                     ^
There was a problem checking out tag: v1.5.4

Seems to be a git problem. I'll look into this over the weekend and try to find the source.

udondan commented 10 years ago

So yep, there must have been something broken with meteorite.

I found https://github.com/mangasocial/meteor-accounts-ui-bootstrap-3/issues/42 and the suggestion worked here as well:

rm -rf ~/.meteorite
sudo npm uninstall -g meteorite
sudo rm -rf /usr/local/lib/node_modules/meteorite/  # to be sure
sudo npm install -g meteorite

I will file a bug report at the meteorite page.

Thanks for your feedback @amrali!