<h1 dir="auto">Bug report</h1>




<p dir="auto"><strong>What is the current behavior?</strong><br>
Latest webpack (4.29.4) pulls in <code class="notranslate">long@4.0.1</code> using Git.</p>
<p dir="auto"><a href="https://www.npmjs.com/package/long" rel="nofollow">long</a> is still on 4.0.0, so 4.0.1 hasn't been published yet. This mean it is doing so via <code class="notranslate">git</code>, which creates a hard dependency on <code class="notranslate">git</code> for projects bundled with webpack. This creates issues w/CI pipelines that do not use <code class="notranslate">git</code>.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Simply install webpack with yarn/npm and inspect the lock files, and you should see something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="long &quot;git://github.com/dcodeIO/long.js.git#8181a6b50a2a230f0b2a1e4c4093f9b9d19c8b69&quot;"><pre class="notranslate"><code class="notranslate">long "git://github.com/dcodeIO/long.js.git#8181a6b50a2a230f0b2a1e4c4093f9b9d19c8b69"
</code></pre></div>






<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Webpack itself should not have a dependency on <code class="notranslate">git</code>. This is an unnecessary dependency for CI/build systems.</p>


<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  4.29.4<br>
Node.js version: v8.15.0<br>
Operating System: Ubuntu 18.04.2 LTS<br>
Additional tools:</p>
<blockquote>
<p dir="auto">npm sill fetchPackageMetaData error for long@git://github.com/dcodeIO/long.js.git#8181a6b50a2a230f0b2a1e4c4093f9b9d19c8b69 Error while executing:</p>
</blockquote>
<p dir="auto">In my firm direct access to Github assets is blocked, and I imagine this will be the case for a lot of enterprise applications. Hence it is impossible to install the latest version of Webpack which depends on 1.8.2 of this module.</p>
<p dir="auto">Can this change be reverted or fixed?</p>