From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92026 invoked by alias); 20 Apr 2016 18:50:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 92013 invoked by uid 89); 20 Apr 2016 18:50:26 -0000 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 Received: from mail-wm0-f68.google.com (HELO mail-wm0-f68.google.com) (74.125.82.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 20 Apr 2016 18:50:16 +0000 Received: by mail-wm0-f68.google.com with SMTP id l6so16159265wml.3 for ; Wed, 20 Apr 2016 11:50:16 -0700 (PDT) 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) Received: from dinwoodie.org ([2001:ba8:0:1c0::9:1]) by smtp.gmail.com with ESMTPSA id by7sm6960161wjc.18.2016.04.20.11.50.13 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 20 Apr 2016 11:50:13 -0700 (PDT) Date: Wed, 20 Apr 2016 19:30:00 -0000 From: Adam Dinwoodie To: cygwin@cygwin.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 X-SW-Source: 2016-04/txt/msg00531.txt.bz2 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