X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=wl0a Uhrj97zWS5w6o/enISsHfmd6eWiciQP+GvR+KNje4YgcF/kB76xkyP1es3VIKVpD kplNZyInRYyb8EOWx3gABOt6iUhusLcOjWA8UpZI24QaYi1jVzDcKTm976cRMGqc WJXUek9JoDwHjaLuXZhNianMr9r49GPMzLHsU8Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=C7i8fFCSSl OwExWunmaI4Puc5j8=; b=vClp9v2+3SxNNiuiGRH0j92pXsXz6AHxHkjCb2mruW YCeyHDnLkDzT6YFJQPEH9JPlCCIQducWjo+CFJSMKKkYwGHdrcckfhHwtpGqn6PE AUhpIDdFaURLgdDdiOA7RyJNqw/EKYrXf44FyKGNXyNfh8fiQKApoLkc9B95Z5wn I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=rusty, NPM, fighting, joined X-HELO: mail-wm0-f68.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YT6GWWNH2XZ+cD8GAWL0+U7cVRv5ERY0KL1Zohh4bq4=; b=Y+0Vu0xREcq7Jrle9HkRLRtZ0m/mKnpIlnOF3MNHtWtq89oB2SX9LojM2UUhGWQIub Fgh+KTvYQx3UjP69NbUmeV6Upy0Clw9s/WMkPxNnPU63tY+i4YbIRHHjjn0Eu7m9Nl6f K4J4QPUj/KsaDLPpfKxcdIE8fU/8uNqPI3djfxNEhtj4S3u/sJLfDX4ZVh2F5kWcG//J TYsroosqEmaYvtF+do21HjCbEOn3iBnIqk/SbZ2qONfqhEo2oVWmh7Nzrz6Ws6FAADDq 85Gyun0wqXK83hOuxDToFdj2Aca/WHzJC+pbhf2ckkZcTKgIBxQnj/Ppx6/zCXivGaA9 r3CA== X-Gm-Message-State: AOPr4FVNlcEYxy8Of8/R+a2QIn0H5eRTGw0zRNeVl93cAt4uy2vpa84TXwzvQFsxlYQ83Q== X-Received: by 10.28.216.14 with SMTP id p14mr10516222wmg.20.1461178213805; Wed, 20 Apr 2016 11:50:13 -0700 (PDT) Date: Wed, 20 Apr 2016 19:50:11 +0100 From: Adam Dinwoodie To: cygwin AT cygwin DOT com Subject: Re: introduction, fix for npm w.r.t. git, and questions Message-ID: <20160420185011.GJ2345@dinwoodie.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes On Wed, Apr 20, 2016 at 03:21:27PM +0000, Brian Clifton wrote: > (I've never joined a mailing list so please bear with me as I learn how this works) Hi Brian, welcome! > I saw the email chain regarding Git using Windows paths; I wanted to > share that I've been fighting that too. Specifically, npm will fail > npm installs because it will try to use the Windows path. I submitted > the following PR to fix that: > > https://github.com/npm/npm/pull/12366 My JavaScript is somewhat rusty, and I've never used npm, but it looks to me that the problem here is that npm's `process.platform` in `git.js` is set to 'win32'. Cygwin isn't 'win32' -- it's a fundamentally different beast that just happens to sit on top of Windows -- so attempting to treat Cygwin as Windows is going to cause all sorts of pain. I think the "correct" fix would be to get npm (or possibly the JavaScript engine itself?) to stop acting as if it's in a Windows environment when it's running under Cygwin; the Cygwin environment is much more like a *nix environment than anything else. I've no idea what that change would involve, though. > With how many folks experience issues w/ git on Cygwin, > I'd like to help popularize *some* kind of fix, whatever it might be, > since NPM and likely other projects are not willing to support Cygwin. This sort of experience is, as best I can tell, pretty rare actually. Generally if you have a user (or a process) running within Cygwin, it's expecting to use POSIX-style paths exclusively -- the whole point of Cygwin being to provide a POSIX-like environment on Windows -- and the only time you need to think about Windows-style paths is if you're calling a native Windows application from within Cygwin (at which point you normally know that's what you're doing and can use cygpath). -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple