You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Ian Clelland <ic...@chromium.org> on 2013/08/28 16:19:00 UTC

Published CLI 3.07 may have Windows line endings, and is generally broken.

>From the discussion on CB-4684, it looks like the latest CLI (3.0.7) is
broken on non-windows environments.

The line endings have changed from \n to \r\n, and Bash is confused.

The quick fix seems to be to republish from Unix, and declare "Don't
publish from a Windows machine".

I feel like there should be a better solution, as this must come up all the
time in other projects, but this bug is two years old and still open:
https://github.com/isaacs/npm/issues/2097

Ian

Re: Published CLI 3.07 may have Windows line endings, and is generally broken.

Posted by Benn Mapes <be...@gmail.com>.
Yah, there should be something to catch this cause I could see it happening
again down the road.
I just republished on an mac and it seems to work fine now.

~Benn


On Wed, Aug 28, 2013 at 9:55 AM, Carlos Santana <cs...@gmail.com>wrote:

> What about a git hook (server or client)?
>
> example of pre-commit hook:
> https://gist.github.com/johnjohndoe/4024222
>
> reference:
> http://git-scm.com/book/en/Customizing-Git-Git-Hooks
>
> --Carlos
>
>
>
> On Wed, Aug 28, 2013 at 11:47 AM, Ian Clelland <ic...@google.com>
> wrote:
>
> > Yes, by 4684, I mean 4686 :)
> >
> > Thanks
> >
> >
> >
> > On Wed, Aug 28, 2013 at 11:44 AM, Shazron <sh...@gmail.com> wrote:
> >
> > > CB-4686 actually
> > > https://issues.apache.org/jira/browse/CB-4686
> > >
> > >
> > > On Wed, Aug 28, 2013 at 10:19 PM, Ian Clelland <iclelland@chromium.org
> > > >wrote:
> > >
> > > > From the discussion on CB-4684, it looks like the latest CLI (3.0.7)
> is
> > > > broken on non-windows environments.
> > > >
> > > > The line endings have changed from \n to \r\n, and Bash is confused.
> > > >
> > > > The quick fix seems to be to republish from Unix, and declare "Don't
> > > > publish from a Windows machine".
> > > >
> > > > I feel like there should be a better solution, as this must come up
> all
> > > the
> > > > time in other projects, but this bug is two years old and still open:
> > > > https://github.com/isaacs/npm/issues/2097
> > > >
> > > > Ian
> > > >
> > >
> >
>
>
>
> --
> Carlos Santana
> <cs...@gmail.com>
>

Re: Published CLI 3.07 may have Windows line endings, and is generally broken.

Posted by Carlos Santana <cs...@gmail.com>.
What about a git hook (server or client)?

example of pre-commit hook:
https://gist.github.com/johnjohndoe/4024222

reference:
http://git-scm.com/book/en/Customizing-Git-Git-Hooks

--Carlos



On Wed, Aug 28, 2013 at 11:47 AM, Ian Clelland <ic...@google.com> wrote:

> Yes, by 4684, I mean 4686 :)
>
> Thanks
>
>
>
> On Wed, Aug 28, 2013 at 11:44 AM, Shazron <sh...@gmail.com> wrote:
>
> > CB-4686 actually
> > https://issues.apache.org/jira/browse/CB-4686
> >
> >
> > On Wed, Aug 28, 2013 at 10:19 PM, Ian Clelland <iclelland@chromium.org
> > >wrote:
> >
> > > From the discussion on CB-4684, it looks like the latest CLI (3.0.7) is
> > > broken on non-windows environments.
> > >
> > > The line endings have changed from \n to \r\n, and Bash is confused.
> > >
> > > The quick fix seems to be to republish from Unix, and declare "Don't
> > > publish from a Windows machine".
> > >
> > > I feel like there should be a better solution, as this must come up all
> > the
> > > time in other projects, but this bug is two years old and still open:
> > > https://github.com/isaacs/npm/issues/2097
> > >
> > > Ian
> > >
> >
>



-- 
Carlos Santana
<cs...@gmail.com>

Re: Published CLI 3.07 may have Windows line endings, and is generally broken.

Posted by Ian Clelland <ic...@google.com>.
Yes, by 4684, I mean 4686 :)

Thanks



On Wed, Aug 28, 2013 at 11:44 AM, Shazron <sh...@gmail.com> wrote:

> CB-4686 actually
> https://issues.apache.org/jira/browse/CB-4686
>
>
> On Wed, Aug 28, 2013 at 10:19 PM, Ian Clelland <iclelland@chromium.org
> >wrote:
>
> > From the discussion on CB-4684, it looks like the latest CLI (3.0.7) is
> > broken on non-windows environments.
> >
> > The line endings have changed from \n to \r\n, and Bash is confused.
> >
> > The quick fix seems to be to republish from Unix, and declare "Don't
> > publish from a Windows machine".
> >
> > I feel like there should be a better solution, as this must come up all
> the
> > time in other projects, but this bug is two years old and still open:
> > https://github.com/isaacs/npm/issues/2097
> >
> > Ian
> >
>

Re: Published CLI 3.07 may have Windows line endings, and is generally broken.

Posted by Shazron <sh...@gmail.com>.
CB-4686 actually
https://issues.apache.org/jira/browse/CB-4686


On Wed, Aug 28, 2013 at 10:19 PM, Ian Clelland <ic...@chromium.org>wrote:

> From the discussion on CB-4684, it looks like the latest CLI (3.0.7) is
> broken on non-windows environments.
>
> The line endings have changed from \n to \r\n, and Bash is confused.
>
> The quick fix seems to be to republish from Unix, and declare "Don't
> publish from a Windows machine".
>
> I feel like there should be a better solution, as this must come up all the
> time in other projects, but this bug is two years old and still open:
> https://github.com/isaacs/npm/issues/2097
>
> Ian
>